[R] Sink for a subdirectory
Duncan Murdoch
dmurdoch at pair.com
Thu May 8 03:46:58 CEST 2003
On Wed, 07 May 2003 15:32:00 -0700, you wrote:
>Did you specify the entire path, or only the ending segment?
I gave the ending segment. R doesn't do anything surprising here. If
your current working directory is "/blah", then
sink( "Subdir/filename" )
will try to write to the file "/blah/Subdir/filename". This will fail
if "/blah/Subdir" doesn't exist.
We have setwd() to change the working directory, and getwd() to find
it, but no mkdir() to create a directory that doesn't already exist.
Duncan Murdoch
More information about the R-help
mailing list