powered by
Whereas base::file.path() only concatenates strings to build a path, make_dirs() also makes sure those folders exist.
base::file.path()
make_dirs()
make_dirs(...)
(Character) Arguments to send to file.path(). You can provide a complete path as a single string, or incrementally build a path with many strings.
file.path()
(Character) A file path. Automatically adds trailing slashes if required.
Desi Quintans (http://www.desiquintans.com)
# NOT RUN { make_dirs(tempdir(), "newfolder") #> [1] "C:/Users/.../Temp/RtmpSwZA8X/newfolder" # } # NOT RUN { # }
Run the code above in your browser using DataLab