[R] Sink for a subdirectory

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed May 7 23:47:26 CEST 2003


On Wed, 7 May 2003, R A F 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, provided Subdir exists. What does `does not seem to work' 
mean, precisely?

There's nothing special about sink(): it can take any valid filename or
any writeable connection.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list