Hello, I'm quite a noob on R. I just wanted to know: is there a way to definitely teach R a new function or do I have to source the code of the function in every new session? Thanks for your answer... -- View this message in context: http://r.789695.n4.nabble.com/Sourcing-functions-tp2122413p2122413.html Sent from the R help mailing list archive at Nabble.com.
On May 1, 2010, at 6:22 PM, paellota wrote:> > Hello, > > I'm quite a noob on R. I just wanted to know: is there a way to > definitely > teach R a new function or do I have to source the code of the > function in > every new session?If you read the Installation and Administration document you should find material on that process. Look for the section that describes the care and feeding of .Rprofile or type ?Startup # in an R console session.> > Thanks for your answer... > ---- David Winsemius, MD West Hartford, CT
?Startup You can have it automatically load your favorite functions at startup. On Sat, May 1, 2010 at 6:22 PM, paellota <paellota@yahoo.fr> wrote:> > Hello, > > I'm quite a noob on R. I just wanted to know: is there a way to definitely > teach R a new function or do I have to source the code of the function in > every new session? > > Thanks for your answer... > -- > View this message in context: > http://r.789695.n4.nabble.com/Sourcing-functions-tp2122413p2122413.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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<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 that you are trying to solve? [[alternative HTML version deleted]]
David Winsemius wrote:> > If you read the Installation and Administration document you should > find material on that process. Look for the section that describes the > care and feeding of .Rprofile or type > > ?Startup # in an R console session. >And when you are ready, the "Writing R Extensions" manual will show you how to store your functions in an R package that you can quickly load up on other machines. -Charlie ----- Charlie Sharpsteen Undergraduate-- Environmental Resources Engineering Humboldt State University -- View this message in context: http://r.789695.n4.nabble.com/Sourcing-functions-tp2122413p2122562.html Sent from the R help mailing list archive at Nabble.com.