[R] where does R search when source()?

Duncan Murdoch dmurdoch at pair.com
Sun Jul 11 04:53:36 CEST 2004

On Sat, 10 Jul 2004 22:40:27 -0400, "Shin, Daehyok"
<sdhyok at email.unc.edu> wrote:

>To my knowledge, it is a common practice for users to archive some script
>files in other directories than current working directory, when the script
>files are frequently used in many cases. So, it is somewhat surprising to me
>there is no elegant solution to set up default search paths in R.

The normal way to do this in R is to put your commonly used scripts
into functions.  You can put the functions into packages if you want
to group them together, then attach the package to load a group all at

Duncan Murdoch

More information about the R-help mailing list