[Rd] Re: [R] weirdness in sourc()ing a dump() (bug?) (PR#6857)

dmurdoch at pair.com dmurdoch at pair.com
Wed May 5 21:15:12 CEST 2004


On Wed, 05 May 2004 11:53:12 -0700, Webb Sprague
<wwsprague at ucdavis.edu> wrote :

>Hi all,
>
>I dump the result of a long simulation, which I know has run to 
>completion and returned a fairly complex list of lists of things. 
>However, when I try to read it back in, I get the following error:
>
> > source ('../SIMULATIONS/run.1.R')
>Error in structure(list(do.extinction.runs, alpha = 1.8, delta.change = 
>0.005,  : Object "do.extinction.runs" not found

Here's a simpler example:

> f<-function (...) 
+ {
+     return(list(call.list = as.list(match.call())))
+ }
> x <- f(y=4)
> dump('x')
> rm(f)
> source('dumpdata.r')
Error in structure(list(f, y = 4), .Names = c("", "y")) : 
        Object "f" not found

This bug still appears in R-patched.

Duncan Murdoch



More information about the R-devel mailing list