Take a look at ?source

Mihai.Mirauta wrote:
> 
> 
> Hello,
> 
> I am trying to use self created functions in other scripts than the one
> where they are stored.
> For the moment I am using the following structure of commands to do
> that:
> 
> 1. Load the text file with the functions in the current script:
> x=parse("path")
> 2. transform the tex in a function: f1=eval(x[1]), f2=eval(x[2]) if more
> than one function is stored in the text file
> 3. use the functions as normal
> 
> Is there another possibility to do the same?
> Thank you,
> 
> Mihai Mirauta
> 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@r-project.org 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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-load-functions-in-R-tp19434909p19434944.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org 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.

Reply via email to