[R] how can i add a package that i want to use permanent

Bos, Roger roger.bos at us.rothschild.com
Thu Jan 10 15:45:51 CET 2008


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: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of Charles Annis, P.E.
Sent: Thursday, January 10, 2008 9:11 AM
To: '???'; r-help at stat.math.ethz.ch
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.

Charles.Annis at StatisticalEngineering.com
phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of ???
Sent: Wednesday, January 09, 2008 10:28 PM
To: r-help at stat.math.ethz.ch
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:bbbiiiooo at 163.com
            huwenb at gmail.com

	[[alternative HTML version deleted]]

______________________________________________
R-help at 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. 




More information about the R-help mailing list