[R] How to create a directoy with R
phgrosjean at sciviews.org
Mon Mar 27 15:24:16 CEST 2006
See ?dir.create, and take care at the 'recursive' argument in case you
have to create several subdir levels at once.
Sarah Goslee wrote:
> I think you need to use system("mkdir") or whatever is appropriate
> for your OS. Making directories is a function of the OS, not of R. If
> you need to make a truly cross-platform solution, you might need
> to check within your code what OS is being used, and call the
> appropriate system statement. (I think you can do this, but have
> never needed to.) That would be particularly important if you need to
> specify paths.
> On 3/27/06, pau carre <pau.carre at gmail.com> wrote:
>>Hello, I am trying to create directories with R. I would like R to
>>create directories because it is platform independent. I tried using
>>file() and searching in "R Data Import/Export" but I did not succeed.
>>I think it must be some function since exists the unlink to remove
>>directories (and files).
>>R-help at stat.math.ethz.ch mailing list
>>PLEASE do read the posting guide!
> Sarah Goslee
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help