powered by
If the overwrite is TRUE then the folder will be deleted, otherwise the folder will be created.
overwrite_check(outdir, overwrite)
the output directory
TRUE or FALSE if `outdir`` exists and overwrite = FALSE then throw an error
# NOT RUN { tf = tempfile() overwrite_check(tf, overwrite = FALSE) overwrite_check(tf, overwrite = TRUE) # clean up fs::dir_delete(tf) # }
Run the code above in your browser using DataLab