mkpath: Construct a path

View source: R/utils_file_io.R

mkpathR Documentation

Construct a path

Description

Given a path, construct it if it does not exist.

Usage

mkpath(path, mkfile = FALSE, mkdir = TRUE)

Arguments

path

(character) path

mkfile

(logical) whether to make the file if it doesn't exist. IF TRUE and the path has an extension, both the directory and the file will be created

mkdir

(logical) whether to make the directory if it doesn't exist. If TRUE, and the path does not have an extension, path will be created as a directory path.

Value

(informative messages)

See Also

Other file IO: col_types(), dep_read(), dep_write(), dir_fn(), dirs, ext(), file_fn(), is_filepath(), last_updated(), list.files2(), load_obj(), make_names(), move_files_to_folder(), needs_update(), object_fn(), object_write(), package_size(), write_dir_fn(), write_lines()


yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.