Hi All I was wondering if there is a way I can specify in R that it should load libraries automatically at startup, so that I do not have to manually issue the command. Thanks Toby
Hi I do not know if this is the best way, but have a look at .Rprofile - a text file that lives in the R root directory ans is executed at startup. You could put library() commands in that. See ?Startup for more information. Regards JS --- John Seers Institute of Food Research Norwich Research Park Colney Norwich NR4 7UA tel +44 (0)1603 251497 fax +44 (0)1603 507723 e-mail john.seers at bbsrc.ac.uk e-disclaimer at http://www.ifr.ac.uk/edisclaimer/ Web sites: www.ifr.ac.uk www.foodandhealthnetwork.com -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of toby909 at gmail.com Sent: 08 March 2007 20:46 To: r-help at stat.math.ethz.ch Subject: [R] autoload libraries at startup Hi All I was wondering if there is a way I can specify in R that it should load libraries automatically at startup, so that I do not have to manually issue the command. Thanks Toby ______________________________________________ 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 and provide commented, minimal, self-contained, reproducible code.
Hi see .First or .Rprofile Regards Petr BTW, did you try ?Startup or help.search("startup") before your posting? On 8 Mar 2007 at 12:45, toby909 at gmail.com wrote: To: r-help at stat.math.ethz.ch From: toby909 at gmail.com Date sent: Thu, 08 Mar 2007 12:45:39 -0800 Subject: [R] autoload libraries at startup> Hi All > > I was wondering if there is a way I can specify in R that it should > load libraries automatically at startup, so that I do not have to > manually issue the command. > > Thanks Toby > > ______________________________________________ > 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 and provide commented, > minimal, self-contained, reproducible code.Petr Pikal petr.pikal at precheza.cz