Skip to content

system command

3 messages · Nader Emami, Brian Ripley, Roger Bivand

#
Hello,

It is very simple question. I want to go to the parent directory and
give the 'system("cd ../") commnad. But it stayes at the same dirctory
as before. Do I forget to give some extra parameter to system command in
this case?

Regards,
Nader
--------------------------------------------------------------
Zie ook/see also: http://www.knmi.nl/maildisclaimer.html 
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 16 Aug 2002, Nader Emami wrote:

            
That launches a shell, changes working directory in that shell, then quits.

setwd("..")  should do what I guess you intended, change the working
directory of the R process itself.
#
On Fri, 16 Aug 2002, Nader Emami wrote:

            
setwd()

--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no
and: Department of Geography and Regional Development, University of
Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, Poland.

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