Learn R Programming

SpaDES (version 1.3.1)

checkPath: Check filepath.

Description

Checks the specified filepath for formatting consistencies, such as trailing slashes, etc.

Usage

checkPath(path, create)

# S4 method for character,logical checkPath(path, create)

# S4 method for character,missing checkPath(path)

# S4 method for `NULL`,ANY checkPath(path)

# S4 method for missing,ANY checkPath()

Arguments

path

A character string corresponding to a filepath.

create

A logical indicating whether the path should be created if it doesn't exist. Default is FALSE.

Value

Character string denoting the cleaned up filepath.

See Also

file.exists, dir.create.