[Rd] Setting working directory (PR#1338)

Thomas Lumley tlumley@u.washington.edu
Fri, 1 Mar 2002 14:55:10 -0800 (PST)


On Fri, 1 Mar 2002 jmf@atmiserv.com wrote:

> Full_Name: Jeffrey M. Freedman
> Version: 1.4.1
> OS: Mac OSX
> Submission from: (NULL) (169.226.200.51)
>
>
> I'm running R version 1.4.1 (NOT DARWIN VERSION) and it crashes every time I set
> a working directory (either from the menu or using setwd) to a path that is
> longer than a certain number of characters. This was not a problem in version
> 1.3.1.


I can duplicate this.

setwd("Macintosh HD:Users:thomas:pointless:pointless:pointless:pointless")
getwd()
crashes (the directory does exist)

The error doesn't depend on levels of nesting (replacing 'pointless' by
'a' removes the crash), and it doesn't require the directory to exist

setwd("R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions.")
getwd()

which is a legal, non existent path, causes the crash.


	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._