Learn R Programming

SpaDES (version 1.2.0)

checkPath: Check filepath.

Description

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

Usage

checkPath(path, create)
"checkPath"(path, create)
"checkPath"(path)
"checkPath"(path)
"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.