make_path | R Documentation |
Whereas base::file.path()
only concatenates strings to build a path, make_path()
also makes sure those folders exist.
make_path(...)
... |
(Character) Arguments to send to |
(Character) A file path. Automatically adds trailing slashes if required.
Desi Quintans (http://www.desiquintans.com)
# make_path("path", "to", "subfolder")
#> [1] "path/to/subfolder"
# And the path/to/subfolder/ folders were also created in the working directory.
# saveRDS(iris, make_path("subfolders/to/compiled/data/iris.rds"))
# Creates all of the subfolders required for writing iris.rds.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.