[R] Sink for a subdirectory
Spencer Graves
spencer.graves at pdf.com
Thu May 8 00:32:00 CEST 2003
Did you specify the entire path, or only the ending segment?
spencer graves
Duncan Murdoch wrote:
> On Wed, 07 May 2003 21:38:14 +0000, you wrote:
>
>
>>Hi, how do I sink output to a subdirectory under which R is running?
>>
>>For example, suppose R is running in ~me and I would like to sink output to
>>~me/Subdir/filename.
>>
>>The obvious sink( "Subdir/filename" ) does not seem to work.
>
>
> It works for me. It would be helpful if you said what goes wrong, and
> what OS you're running in.
>
> I'm guessing that Subdir doesn't exist; R won't create it. I don't
> think there's a mkdir() function in R; you'll need to create the
> subdir outside of R, or use system() to do it. For example, in
> Windows,
>
> system('command /c mkdir Subdir')
>
> would do it.
>
> Duncan Murdoch
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list