make_dirs {librarian} | R Documentation |
Build a path, creating subfolders if needed
Description
Whereas base::file.path()
only concatenates strings to build a path, make_dirs()
also makes sure those folders exist.
Usage
make_dirs(...)
Arguments
... |
(Character) Arguments to send to |
Value
(Character) A file path. Automatically adds trailing slashes if required.
Authors
Desi Quintans (http://www.desiquintans.com)
Source
Desiderata package (https://github.com/DesiQuintans/desiderata)
Examples
## Not run:
make_dirs(tempdir(), "newfolder")
#> [1] "C:/Users/.../Temp/RtmpSwZA8X/newfolder"
## End(Not run)
[Package librarian version 1.8.1 Index]