As far as I know there is no analog of setwd(). At startup time you can
specify the working directory via a command line argument like
S_PROJ="C:\\Projects\\Data1" (this will affect both the "current directory"
for file operations, and where S-plus looks for the ".Data"
directory). However, I know of no way to change the working directory
while in a running S-plus session.
-- Tony Plate
At Thursday 01:17 PM 9/23/2004, Iyue Sung wrote:
Hi all,
I'm trying to specify the working directory from which to read in (and
write to) miscellaneous data.
The documents and archives seem to suggest something like
> data.wd<-"C:\\Projects\\Data1"
> attach(pos=1, new.database(data.wd))
But then, I try to read in a simple file with:
> base<-read.table("myData.csv", sep=",", header=T)
without success.
Could someone provide a tip please?
Basically, I would like to use syntax that is analogous to "setwd()" in
[R].
Thanks,
Iyue
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu. To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message: unsubscribe s-news
|