Hi all,
I'm a regular R user on Windows outside of urbansim. Haven't had a chance to
get into urbansim but I lurk on the list because I'm planning to soon.
The graphics screen freeze is a frequent problem for me on windows. It
occurs most commonly when working with large datasets. I'm sure you could
provoke it with urbansim, but it's doubtful urbansim or python is causing it
on its own.
When I have a plot that freezes R I look for other ways to do it. One trick
I use sometimes is to set the plot parameter of the graphics call to false
and then work with the output values I need rather than the direct plot.
Ex R code:
x=rnorm(100)
out = hist(x, plot = FALSE)
print(out)
Hope that is of use.
-Joel
On 6/15/07, Brian Miles <Brian.Miles_at_uvm.edu> wrote:
>
>
> Hello,
>
> When we run the following code (from chapter 6, p. 47 of the user guide):
>
> import os
> import urbansim
> us_path = urbansim.__path__[0]
> from opus_core.storage_factory import StorageFactory
> storage = StorageFactory().get_storage('tab_storage', storage_location =
> os.path.join(us_path, 'data/tutorial'))
> from urbansim.datasets.household_dataset import HouseholdDataset
> households = HouseholdDataset(in_storage = storage, in_table_name =
> 'households', id_name='household_id')
> households.r_histogram("income")
>
> from the python interpreter, we get an R window with the correct plot, but
> the window the plot is in freezes--it cannot be closed
> without forcibly killing the parent python process.
>
> We are running rpy 1.0-RC2 and have tried by R 2.2.1 and 2.4.1 with the
> same results. (Version 0.4.6/0.99.0 of rpy is no longer available on the
> rpy site. The only version that is, 1.0-RC2, is supposed to work with R
> 2.0.0 through R 2.4.1) We are using Enthought Python 2.4.3 under Windows.
>
> Has anyone else experienced this? Is there any way that the version of
> rpy (0.4.6) recommended in the Opus install instructions (
> http://www.urbansim.org/opus/candidate-releases/opus-2007-04-25/docs/windows_install.html),
> as well as the corresponding version of R, could be made available so that
> we're sure we're running a configuration that has been tested?
>
> Thanks,
>
> Brian Miles
> Graduate Assistant
> Spatial Analysis Lab - Rubenstein School of Environment and Natural
> Resources
> University of Vermont
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users_at_urbansim.org
> http://www.urbansim.org/mailman/listinfo/users
>
>
-- Joel Bremson Graduate Student Researcher Institute of Transportation Studies - UC DavisReceived on Wed Jun 20 2007 - 15:28:35 PDT
This archive was generated by hypermail 2.2.0 : Wed Jun 20 2007 - 15:28:36 PDT