May I ask how to include following procedures into R script (such as first.r) such that it will do an automatical call next time after I open R? Packages -> Load Packages -> splines Thanks, Shelton --------------------------------- [[alternative HTML version deleted]]
On 7/5/2006 9:23 AM, Xiaodong Jin wrote:> May I ask how to include following procedures into R script (such as first.r) such that it will do an automatical call next time after I open R? > > Packages -> Load Packages -> splinesYou can do this through your .Rprofile file, or site-wide through the RHOME/etc/Rprofile file. There's an example of the latter in the ?Startup man page. It can also be done by defining the environment variable R_DEFAULT_PACKAGES=splines but then *only* the packages you list will be attached (i.e. splines in the example above); you're probably better off working with .Rprofile. Duncan Murdoch
Xiaodong Jin wrote:> May I ask how to include following procedures into R script (such as first.r) such that it will do an automatical call next time after I open R? > > Packages -> Load Packages -> splinesSee ?Startup Uwe Ligges> Thanks, > Shelton > > > --------------------------------- > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html