hadley wickham
2005-Dec-14 16:09 UTC
[R] Problem with dir.create (R2.2.0 Windows XP 2002 SP 2)
I've run into a problem with dir.create on R2.2.0 Windows XP 2002 SP 2. setwd("d:/") print(dir.create("d:\\otis-sim\\rdata", recursive=T)) print(dir.create("d:\\otis-sim\\", recursive=T)) Both return false and fail to create the directories. setwd("c:/") print(dir.create("d:\\otis-sim\\rdata", recursive=T)) Returns true and succesfully creates the directories. Why does this occur? Hadley
Liaw, Andy
2005-Dec-14 21:23 UTC
[R] Problem with dir.create (R2.2.0 Windows XP 2002 SP 2)
No problem for me (Version 2.2.0 (2005-10-06 r35749), WinXPPro SP2):> setwd("q:/") > print(dir.create("q:/Andy/what/is/this", recursive=TRUE))[1] TRUE> setwd("c:/") > print(dir.create("q:/Andy/what/is/that/thing", recursive=TRUE))[1] TRUE Andy From: hadley wickham> > I've run into a problem with dir.create on R2.2.0 Windows XP > 2002 SP 2. > > setwd("d:/") > print(dir.create("d:\\otis-sim\\rdata", recursive=T)) > print(dir.create("d:\\otis-sim\\", recursive=T)) > > Both return false and fail to create the directories. > > setwd("c:/") > print(dir.create("d:\\otis-sim\\rdata", recursive=T)) > > Returns true and succesfully creates the directories. > > Why does this occur? > > Hadley > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >
Michael H. Prager
2005-Dec-14 21:37 UTC
[R] Problem with dir.create (R2.2.0 Windows XP 2002 SP 2)
I hope this isn't an insulting question, but does drive D: exist on that machine? Mike on 12/14/2005 11:09 AM hadley wickham said the following:>I've run into a problem with dir.create on R2.2.0 Windows XP 2002 SP 2. > >setwd("d:/") >print(dir.create("d:\\otis-sim\\rdata", recursive=T)) >print(dir.create("d:\\otis-sim\\", recursive=T)) > >Both return false and fail to create the directories. > >setwd("c:/") >print(dir.create("d:\\otis-sim\\rdata", recursive=T)) > >Returns true and succesfully creates the directories. > >Why does this occur? > >Hadley > > >-- Michael Prager, Ph.D. Population Dynamics Team, NMFS SE Fisheries Science Center NOAA Center for Coastal Fisheries and Habitat Research Beaufort, North Carolina 28516 http://shrimp.ccfhrb.noaa.gov/~mprager/ Opinions expressed are personal, not official. No government endorsement of any product is made or implied.