check_dir_create: check existence and create folder if non-existent

View source: R/utils.R

check_dir_createR Documentation

check existence and create folder if non-existent

Description

check existence and create folder if non-existent

Usage

check_dir_create(path)

Arguments

path

Folder path to check and create if not there.

Value

the same returned values for dir.create()

Examples


run_example <- function(){
 xx <- tempdir()
 check_dir_create(xx)
 on.exit(unlink(xx, recursive = TRUE), add = TRUE) 
}
run_example()



baker documentation built on Dec. 12, 2025, 1:06 a.m.