checkdir: Check and create path

View source: R/checkdir.R

checkdirR Documentation

Check and create path

Description

Checks if the given path exists, if not it creates it.

Usage

checkdir(path, recursive = TRUE, verbose = FALSE, ...)

Arguments

path

a character vector containing a single path name.

recursive

a logical. Should elements of the path other than the last be created?

verbose

a logical. If TRUE a warning is shown when the folder already exists.

...

additional options for dir.create.

Value

returns TRUE if a new folder is created, FALSE if not

Author(s)

Jakob Gepp

See Also

Internaly the function dir.create is called.

Examples

## Not run: 
checkdir("testfolder/subfolder")

## End(Not run)


STATWORX/helfRlein documentation built on Feb. 12, 2024, 2:21 a.m.