Skip to content
Back to formatted view

Raw Message

Message-ID: <20020805112033.UDPJ26045.mta09.mail.mel.aone.net.au@there>
Date: 2002-08-05T11:27:09Z
From: Jim Lemon
Subject: filename of source file
In-Reply-To: <B926A830-A833-11D6-9601-00039309AF8E@mac.com>

David Richmond wrote:
> Yes, source refers to the use of the source() function. Suppose I invoke
> a file like so:
>
> source("/path/name/filename.r")
>
> I want to insert a command in filename.r like so:
>
> fullpath <- magic_command()
>
> such that fullpath is now "/path/name/filename.r"
>

How about

source(fullpath<-"/path/name/filename.r") ?

Jim
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._