[R] Creating directory under Windows R session

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jun 20 18:06:28 CEST 2007


On Wed, 20 Jun 2007, Henrique Dallazuanna wrote:

> for check the existence,
>
> any(dir('your path')=="your folder")

That does not work, but fortunately R has file_test() for this purpose.

-- 
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