Hello, I've been migrating my computing to R and have not had any major problems running old Splus programs in R. However, the one thing I am missing is the ability to attach directories full of general utility functions from whereever I happen to fire up an R session. As a consequence, I find myself making many duplicate copies of these little general purpose functions by cutting and pasting Splus function code. In any case, this capability would seem to be of fundamental importance and so I would guess that it can be done. I figured I could do something like attach("/home/royle/.RData"), but apparently not. Can someone help me with this? Thanks and regards, andy J. Andy Royle, U.S. Fish and Wildlife Service ----------------------- Adaptive Management and Assessment Team : 11510 American Holly Drive, Laurel, MD 20708-4017. phone - 301-497-5673 : fax - 301-497-5706 email- jar at oriole.er.usgs.gov or andy_royle at fws.gov ----------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"J. Andy Royle" <jar at oriole.er.usgs.gov> writes:> Hello, > > I've been migrating my computing to R and have not had any major > problems running old Splus programs in R. However, the one thing > I am missing is the ability to attach directories full of general > utility functions from whereever I happen to fire up an R session. > As a consequence, I find myself making many duplicate copies of > these little general purpose functions by cutting and pasting > Splus function code. In any case, this capability would seem to be > of fundamental importance and so I would guess that it can be done. > I figured I could do something like attach("/home/royle/.RData"), > but apparently not. Can someone help me with this?You might want to do this in the form of an R package. Check help(library) for the details. Or you could just source() them in ~/.RProfile (except that that would duplicate them into all of your .RData files...). -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._