[R-SIG-Mac] create path/folder

Hans-Jörg Bibiko bibiko at eva.mpg.de
Wed May 16 18:57:24 CEST 2007


On 16.05.2007, at 18:12, Roland Kaiser wrote:

> Hi UseRs!
>
> Is it possible to to create a folder
> in the system directory from inside R?
>
> setwd(tempdir())
> folder.name <- letters[1:5]
> ...?
>
> Can somebody give me a hint?
>

Do you mean something like that:

setwd(tempdir())
a<-"a_name"
system(paste("mkdir",a))

?

Hans



More information about the R-SIG-Mac mailing list