Skip to content
Back to formatted view

Raw Message

Message-ID: <20040505191512.6AA24FB8C@slim.kubism.ku.dk>
Date: 2004-05-05T21:15:15Z
From: Duncan Murdoch
Subject: weirdness in sourc()ing a dump()  (bug?) (PR#6857)

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