FUNCTION_DESCRIPTION

make_folder(path, type = "dirname", verbose = FALSE)

Arguments

path

PARAM_DESCRIPTION

type

PARAM_DESCRIPTION, Default: 'dirname'

verbose

PARAM_DESCRIPTION, Default: 'FALSE'

Value

OUTPUT_DESCRIPTION

Details

DETAILS

Examples

path <- file.path(tempdir(), "testdir") dir.exists(path)
#> [1] FALSE
make_folder(path) dir.exists(dirname(path))
#> [1] TRUE
path <- file.path(tempdir(), "test2", "testfile.xyz") dir.exists(dirname(path))
#> [1] FALSE
make_folder(path, type = "filename") dir.exists(dirname(path))
#> [1] TRUE