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

From: Duncan Murdoch <dmurdoch_at_pair.com>
Date: Sun 11 Jul 2004 - 12:53:36 EST

On Sat, 10 Jul 2004 22:40:27 -0400, "Shin, Daehyok" <sdhyok@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 once.

Duncan Murdoch



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 13:02:20 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:49 EST