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

Rik Bradt rik.bradt at cropdesign.com
Tue Apr 9 19:13:44 CEST 2002


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?

Script R1 could for example contain information about database 
connections, paths etc.
that would be used in several R scripts. I do not want to change all my 
R-scripts
every time I change the password of my database for example!

Regards,

Rik


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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