initDir | R Documentation |
Checks and creates a directory recursively automatically.
initDir(dir)
dir |
|
Useful for setting up functions that require writes to a user-specified directory.
character
.
Directory path(s).
Updated 2023-05-16.
dir <- file.path(tempdir2(), c("aaa", "bbb"))
dir.exists(dir)
dir <- initDir(dir)
dir.exists(dir)
print(dir)
unlink2(dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.