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

From: Dirk Eddelbuettel <>
Date: Sun 11 Jul 2004 - 12:47:27 EST

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 (,
> 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

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Sun Jul 11 12:56:55 2004

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