From tlumley@u.washington.edu  Fri Mar  1 22:55:10 2002
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Fri, 1 Mar 2002 14:55:10 -0800 (PST)
Subject: [Rd] Setting working directory (PR#1338)
In-Reply-To: <200203011519.QAA16850@pubhealth.ku.dk>
Message-ID: <Pine.A41.4.44.0203011441490.248186-100000@homer05.u.washington.edu>

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


[Rd] Setting working directory (PR#1338)
Thomas Lumley