[R] How to source files from a search path?

Bert Gunter gunter.berton at gene.com
Sat Feb 13 00:28:56 CET 2010


1. Etiquette on this list is to sign posts with your real name.

2. Please use R's Help facilities (beyond RSiteSearch()) first before
posting:

?help.search

help.search("environment variable") 


Bert Gunter
Genentech Nonclinical Statistics

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of blue sky
Sent: Friday, February 12, 2010 2:55 PM
To: r-help at stat.math.ethz.ch
Subject: [R] How to source files from a search path?

Suppose some environment variable (say MY_R_INC) has a number of
paths. I want to source some file relative to some path in $MY_R_INC
(just as #include in C++ does, which looks for header file in a number
of directories). I RSiteSearch'ed, but I don't find any function that
satisfies my need. Could somebody let me know if I overlooked
something?

______________________________________________
R-help at 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.



More information about the R-help mailing list