[R] Storing user-defined R functions
David.Epstein
David.Epstein at warwick.ac.uk
Thu Mar 24 17:11:30 CET 2011
Hello, I don't want to find out how to make packages unless that becomes
necessary. Also, I don't want to clog up the computer memory with functions
that I'm not using. (It would be great if someone in this forum would
explain how memory is used when I type library(MASS) and then use only one
function from MASS. Are all the many MASS functions then residing in memory,
or only the one I called?)
Is there some standard way of
1. storing the R functions that I define, each in a separate file in some
standard directory, and then
2. calling one of these functions without having to include the path to the
relevant directory?
3. If so, are there conventional places to keep such files, akin to
/usr/local/bin in Unix?
I'm thinking of a facility like Matlab's, when one has user-defined paths
where Matlab will look for my Matlab functions. In my Matlab code, I don't
need to hard-wire in the path of the storage directory, and I can make the
function call as though my function is in the current directory.
Thanks,
David
--
View this message in context: http://r.789695.n4.nabble.com/Storing-user-defined-R-functions-tp3402983p3402983.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list