[R] Can't there be a cd command?

Barry Rowlingson B.Rowlingson at lancaster.ac.uk
Wed May 10 15:09:01 CEST 2006


> so, _if_ 'cd' would be recognized in future releases, it would'nt do any
> harm, would it?

  > ls()
[1] some   things   here
  > cd("foo")
  > ls()
[1] some   things   here

Cue shout of: "Hey, it didnt work!"

ls() is not to /bin/ls what setwd() is to 'cd'.

Gets -1 from me. setwd() makes it clear[er] its a working directory on 
the file system and nothing to do with R's objects.

Barry




More information about the R-help mailing list