[R] attach (S-style)?

Thomas Lumley thomas at biostat.washington.edu
Thu May 18 17:27:32 CEST 2000


On Thu, 18 May 2000, Martin Maechler wrote:

> >>>>> "ChHo" == Christian Hoffmann <christian.hoffmann at wsl.ch> writes:
> 
>     ChHo> Hi everyone, Being new to the crowd of R users I am wondering
>     ChHo> what the equivalent of
> 
>     ChHo>      attach("/home/bla/hoffmann/R/.RData",2) 
> 
>     ChHo> (S style) is in R.

While the best way to do this is usually with load() or by creating a
package, you will be able to do this in R 1.1.0

The way it is implemented is basically

	attach(NULL,2)
	load("/home/bla/hoffmann/R/.RData",envir=pos.to.env(2))



   -thomas

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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