[R] load in 1.4.0 not working for me

Göran Broström gb at stat.umu.se
Sat Dec 29 10:49:46 CET 2001


On Fri, 28 Dec 2001, David Marimont wrote:

> I'm having trouble with save and load in R 1.4.0 (on RH 7.2) I originally
> noticed this with a large R object, but it happens with a tiny one as well:
> 
>    > a <- c(1,2,3)
>    > save(a,file="test.RData")
>    > a1 <- load("test.RData")
>    > print(a1)
>    NULL

If you try

> a <- c(1,2,3)
> save(a, file="test.RData")
> rm(a)
> load("test.RData")
> a
[1] 1 2 3

it works. It seems as if 'load' has no return value (NULL), but we use it
for its side effect, i.e. reloading datasets. See ?load; no return value 
is specified there.

Göran 
> 
> The file "test.RData" is created, and it does have something in it.  When
> I tried saving a large object, I watched what was happening with xosview,
> and there is some serious disk-writing happening.  When I tried loading,
> there is some serious disk-reading happening.  But no object is returned.
> Am I missing something obvious here?  Thanks.
> 
>    David Marimont
> 
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-- 
 Göran Broström                      tel: +46 90 786 5223
 professor                           fax: +46 90 786 6614
 Department of Statistics            http://www.stat.umu.se/egna/gb/
 Umeå University
 SE-90187 Umeå, Sweden             e-mail: gb at stat.umu.se

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list