[R] where does R search when source()?
edd at debian.org
Sun Jul 11 04:47:27 CEST 2004
On Sat, Jul 10, 2004 at 10:40:27PM -0400, Shin, Daehyok 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.
> Here is my suggestion.
> According to the setup of Python (http://docs.python.org/tut/node8.html),
> when source() is called,
> 1. Search current working directory.
> 2. If not found, search the directories specified by the environment
> variable RPATH.
> I think this change will help users to manage script files more easily. What
> do you think of it?
With all due respect, I think you really want to learn how packages work in
R, and how you can create them.
Those are my principles, and if you don't like them... well, I have others.
-- Groucho Marx
More information about the R-help