Force creating directory with checks
Arguments
- x
path to create
- showWarnings, recursive, ...
passed to
dir.create
- check
whether to check the directory after creation
Examples
path <- file.path(tempfile(), 'a', 'b', 'c')
# The following are equivalent
dir.create(path, showWarnings = FALSE, recursive = TRUE)
dir_create2(path)