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

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Sun 11 Jul 2004 - 11:41:36 EST


> 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



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Jul 11 11:50:59 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:35:28 EST