Skip to content

Setting working directory (PR#1338)

4 messages · jmf@atmiserv.com, Thomas Lumley, stefano iacus

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

Thank you.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 1 Mar 2002 jmf@atmiserv.com wrote:

            
WHAT number of characters (ie can you give us an example).

	-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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Yes, I'm investigating that.

Normally path longer then 255 chars are not allowed. I'll try to fix 
this in time for 1.5.0

stefano
On Venerdì, marzo 1, 2002, at 04:19 , jmf@atmiserv.com wrote:

            
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 1 Mar 2002 jmf@atmiserv.com wrote:

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