View source: R/overwrite_check.r
overwrite_check | R Documentation |
If the overwrite is TRUE then the folder will be deleted, otherwise the folder will be created.
overwrite_check(outdir, overwrite)
outdir |
the output directory |
overwrite |
TRUE or FALSE if 'outdirā exists and overwrite = FALSE then throw an error |
tf = tempfile()
overwrite_check(tf, overwrite = FALSE)
overwrite_check(tf, overwrite = TRUE)
# clean up
fs::dir_delete(tf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.