Learn R Programming

baker (version 1.0.4)

check_dir_create: check existence and create folder if non-existent

Description

check existence and create folder if non-existent

Usage

check_dir_create(path)

Value

the same returned values for dir.create()

Arguments

path

Folder path to check and create if not there.

Examples

Run this code
# \donttest{
run_example <- function(){
 xx <- tempdir()
 check_dir_create(xx)
 on.exit(unlink(xx, recursive = TRUE), add = TRUE) 
}
run_example()
# }

Run the code above in your browser using DataLab