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!!!
--
ºúÎIJ¨
TEL:15918732631
E-MAIL:bbbiiiooo@163.com
huwenb@gmail.com
[[alternative HTML version deleted]]
jim holtman
2008-Jan-10 03:36 UTC
[R] how can i add a package that i want to use permanent
?Startup On Jan 9, 2008 10:28 PM, ??? <huwenb at gmail.com> wrote:> 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!!! > -- > ?????? > 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. > >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve?
Charles Annis, P.E.
2008-Jan-10 14:11 UTC
[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]]