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

Liaw, Andy andy_liaw at merck.com
Sun Jul 11 03:41:36 CEST 2004


> From: Shin, Daehyok
> 
> Exactly where does R search for foo.R if I type source("foo.R")?
> Only from current working directory (same as getwd()), from 
> all directories
> specified by e.g. $PATH?  Thanks.
> 
> Daehyok Shin

The former.  No documentation says otherwise, so why would you think that it
might search somewhere else?

Andy




More information about the R-help mailing list