Francisco Jose Sastre
2008-Sep-03 08:14 UTC
[R] Problem with dir.create in windows servers
Hello. I've being having problems to create directories in a windows server environment . It seems that the recursive argument is not working properly on the intranet, as it does in a local path. For example:> dir.create("\\\\server/directory1/directory2") ,this works fine, and creates the directory2, but If we want to create the directory3 and another directory called directory4 inside of it.>dir.create("\\\\server/directory1/directory3/directory4", recursive=T)fails, and don't create any directory. The ShowWarning doesn't show any message. Any help please. Fran.
Francisco Jose Sastre
2008-Sep-10 12:25 UTC
[R] Problem with dir.create in windows servers
Hello. I've being having problems to create directories in a windows server environment . It seems that the recursive argument is not working properly on the intranet, as it does in a local path. For example:> dir.create("\\\\server/directory1/directory2") ,this works fine, and creates the directory2, but If we want to create the directory3 and another directory called directory4 inside of it.>dir.create("\\\\server/directory1/directory3/directory4", recursive=T)fails, and don't create any directory. The ShowWarning doesn't show any message. Any help please. Fran.
This sounds vaguely familiar to me. This could be reason for why I wrote mkdirs() of the R.utils package. mkdirs() does it's own (manual) recursive creation of directories. See if that does it for you. /Henrik On Wed, Sep 3, 2008 at 1:14 AM, Francisco Jose Sastre <fsastre at axesor.es> wrote:> Hello. I've being having problems to create directories in a windows > server environment . It seems that the recursive argument is not working > properly on the intranet, as it does in a local path. For example: > >> dir.create("\\\\server/directory1/directory2") , > this works fine, and creates the directory2, but > > If we want to create the directory3 and another directory called > directory4 inside of it. >>dir.create("\\\\server/directory1/directory3/directory4", recursive=T) > fails, and don't create any directory. The ShowWarning doesn't show any > message. > > Any help please. > Fran. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >