[R] dynamically including R-code into R-code

Mark Myatt mark at myatt.demon.co.uk
Wed Apr 10 10:09:50 CEST 2002


Rik Bradt <rik.bradt at cropdesign.com> writes:
>Hello,
>
>I have a R-script, R1, that contains some variables and some R-functions.
>I want to include/require this script into another R-script, R2, so that I
>can access the the variables and functions that are inside script R1 in 
>script R2.
>
>Is this possible?

You can use source() to load (e.g.) the R1 script in another script.

Mark

--
Mark Myatt


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list