Hi, I have created a number of custom functions, and hope to reuse them in other source files. How should I go about doing that ? Thanks Stanley [[alternative HTML version deleted]]
Ng Stanley wrote:> Hi, > > I have created a number of custom functions, and hope to reuse them in other > source files. How should I go about doing that ? > >The best way is to create a package to hold them, then just use library(MyPackage) to attach them. See Writing R Extensions for instructions. Another way is to use source('file.R') to read them in. Duncan Murdoch