See ?source and also the list archive, this is a quite frequently asked question.
Gabor On Thu, Feb 08, 2007 at 05:00:55PM +0000, Martin Percossi wrote: > Hello, is it possible to define functions in a file, say, myfunctions.R, > and import them into R -- into the top-level namespace? I've seen in the > documentation that you can create packages, but this seems very > heavy-duty, as it requires me to createa subdirectory, and various other > files. > > TIA > Martin > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Csardi Gabor <[EMAIL PROTECTED]> MTA RMKI, ELTE TTK ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.