Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.A41.4.33.0105311657110.184330-100000@homer01.u.washington.edu>
Date: 2001-06-01T00:01:10Z
From: Thomas Lumley
Subject: windows nt/access other directories/ attach/system
In-Reply-To: <200105312328.f4VNSLL20478@storm.niwa.cri.nz>

On Fri, 1 Jun 2001, S.McClatchie wrote:
> As recommended, I keep separate directories for projects, but also use
> separate sub-directories for types of data (e.g. different oceanographic
> instruments) within projects.
>
> My problem is that I often need to access the objects and data (not
> stored as objects) in more than one directory.
>
> I understand (mistakenly?) that at present you cannot use attach() with
> directories, just with objects and packages. Also I think
> system("command") is for the UNIX environment. System("cd ..") gives
> me an error under Windows NT.

system() does work under Windows, but system("cd ..") wouldn't change the
working directory even under Unix. setwd() is for changing directories.

	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._