From dmurdoch at pair.com  Wed May  5 21:15:12 2004
From: dmurdoch at pair.com (dmurdoch@pair.com)
Date: Wed May  5 21:15:15 2004
Subject: [Rd] Re: [R] weirdness in sourc()ing a dump()  (bug?) (PR#6857)
Message-ID: <20040505191512.6AA24FB8C@slim.kubism.ku.dk>

On Wed, 05 May 2004 11:53:12 -0700, Webb Sprague
<wwsprague@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


[Rd] Re: [R] weirdness in sourc()ing a dump() (bug?) (PR#6857)
dmurdoch@pair.com