Learn R Programming

cmdfun (version 1.0.2)

.check_valid_command_path: Checks path is valid

Description

Not meant to be called directly

Usage

.check_valid_command_path(path)

Arguments

path

path to file or directory

Value

expanded system path

Examples

Run this code
# NOT RUN {
if (.Platform$OS.type == "unix" & file.exists("~/bin")) {
# will return /full/path/to/home/bin, or error if path doesn't exist
.check_valid_command_path("~/bin")
}
# }

Run the code above in your browser using DataLab