Message-ID: <q1h0fv4u3nl517q9t2t7ceqlj048pims4q@4ax.com>
Date: 2003-06-18T10:53:29Z
From: Duncan Murdoch
Subject: R environment variable
In-Reply-To: <20030618100941.89365.qmail@web20708.mail.yahoo.com>
On Wed, 18 Jun 2003 11:09:41 +0100 (BST), you wrote:
>which R environmen variable can be used to point to
>x1.R so that it can be sourced in any directory?
I don't think there is such a thing. source() looks in the current
working directory, it doesn't use environment variables to do a wider
search.
Of course, you can always make up your own variable, and then do
something like
source(paste(getenv('MYDIR'),'/x1.R',sep=''))
and that will work from anywhere if MYDIR is defined properly.
Duncan Murdoch