Skip to content
Prev 47012 / 398498 Next

functions & paths

At 5:28 PM -0500 3/31/04, Kissell, Robert [EQRE] wrote:
<- snip ->
Yes. Here are two ways.

  - 1 -
In the directory where you have your function definitions, load the 
functions into R. Quit R, and say "yes" when asked whether or not to 
save the workspace image. Find the file in which the image is saved, 
copy it to the other pcs. On the other pcs, use the "attach" function 
to attach that file. The functions are now available.

-2-
Go get the R Extensions manual, learn how to create a package. Take 
your functions, make them into a package. Copy the package file to 
the other pcs. Use R's "install package" functionality to install the 
package. Then, whenever the functions are needed, use the "library" 
command to load your package.