[R] Defining functions in separate file...

Csardi Gabor csardi at rmki.kfki.hu
Thu Feb 8 19:03:41 CET 2007


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 at 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 <csardi at rmki.kfki.hu>    MTA RMKI, ELTE TTK



More information about the R-help mailing list