[R] How to create a directoy with R
Philippe Grosjean
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.
Best,
Philippe Grosjean
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.
>
> Sarah
>
> 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).
>>
>>Pau
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch mailing list
>>https://stat.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide!
>>http://www.R-project.org/posting-guide.html
>>
>
>
>
>
> --
> Sarah Goslee
> http://www.stringpage.com
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
More information about the R-help
mailing list