Another option is to modify the Rprofile.site file in the etc folder of your R installation. Then you don't have to save the workspace. You add as much startup scripting as you want to the Rprofile.site file.
HTH, Roger -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charles Annis, P.E. Sent: Thursday, January 10, 2008 9:11 AM To: '???'; [EMAIL PROTECTED] Subject: Re: [R] how can i add a package that i want to use permanent ?.First This will explain things. You make a hidden program called .First like this .First <- function() { library(lattice) } and then save your workspace. The next time you open R, lattice will load automatically. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ??? Sent: Wednesday, January 09, 2008 10:28 PM To: [EMAIL PROTECTED] Subject: [R] how can i add a package that i want to use permanent I want use a package(lattice) in R to do some work but everytime when i open R program ,this package is not loaded, so everytime i have to load it , who can tell me how to load this package permanent thanks!!! -- :zND2( TEL:15918732631 E-MAIL:[EMAIL PROTECTED] [EMAIL PROTECTED] [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ********************************************************************** * This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No right to confidential or privileged treatment of this message is waived or lost by any error in transmission. If you have received this message in error, please immediately notify the sender by e-mail, delete the message and all copies from your system and destroy any hard copies. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.