Re: [R] auto load package splines

From: Duncan Murdoch <>
Date: Wed 05 Jul 2006 - 23:36:38 EST

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

You 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


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 mailing list PLEASE do read the posting guide! Received on Wed Jul 05 23:41:43 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 06 Jul 2006 - 00:16:50 EST.

Mailing list information is available at Please read the posting guide before posting to the list.