[Rd] combine UserDefinedDatabase and regular environments

From: Romain Francois <romain.francois_at_dbmail.com>
Date: Thu, 05 Nov 2009 18:58:30 +0100


Hello,

Is it possible to have the effect of UserDefinedDatabase outside of "attached" environments ? Can I disguise an environment of the sys.frames() as a UserDefinedDatabase ?

This seems to suggest that it might be possible :

> f <- function(){ e <- environment(); class(e) <-
"UserDefinedDatabase"; ff }
> f()

Traceback:

  1. f()

Possible actions:

1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace


At the moment, it seems to be either lookup using UserDefinedDatabase or regular lookup. Has anyone tried to combine both ?

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/BcPw : celebrating R commit #50000
|- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
`- http://tr.im/yw8E : New R package : sos

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 05 Nov 2009 - 18:01:47 GMT

This archive was generated by hypermail 2.2.0 : Thu 19 Nov 2009 - 19:00:34 GMT