s-news
[Top] [All Lists]

Re: setwd() analogue

To: "Iyue Sung" <isung@affinnova.com>, <s-news@lists.biostat.wustl.edu>
Subject: Re: setwd() analogue
From: Tony Plate <tplate@blackmesacapital.com>
Date: Thu, 23 Sep 2004 15:43:14 -0600
In-reply-to: <90821ABF429A074DA88E56D1DF7A71610130CB58@afifs1.affinnova. com>
References: <90821ABF429A074DA88E56D1DF7A71610130CB58@afifs1.affinnova.com>
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


<Prev in Thread] Current Thread [Next in Thread>