Another approach, if making a package is a bit more than what you want to do, is:
1. Save those functions/objects in an image using save(). 2. attach() that image every time you start R. There are a few ways that you can do #2 above. See ?Startup. Andy > From: Roger D. Peng > > I think the usual way is to create an R package for yourself and load > it when you need it for whatever project. > > -roger > > Luis Ridao Cruz wrote: > > R-help, > > > > Sometimes I define functions I wish to have in any R session. > > The obvious thing to do is copy-paste the code > > The thing is that sometimes I don't know where I have the function > > code. > > > > My question is if somehow I could define a function and > "introduce" it > > (let's say 'base' package ) so that > > could be used anytime I run a different R project. > > > > Thank you in advance > > > > ______________________________________________ > > [email protected] mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > > > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > > ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
