RosettaCodeData/Task/Create-a-file/R/create-a-file.r
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

10 lines
240 B
R

f <- file("output.txt", "w")
close(f)
# it may fails and the exact syntax to achieve the root
# changes according to the operating system
f <- file("/output.txt", "w")
close(f)
success <- dir.create("docs")
success <- dir.create("/docs")