Learn R Programming

ospsuite.utils (version 1.2.0)

validatePathIsAbsolute: Check if path is absolute

Description

Relative paths will be detected based on the presence of wildcard character(*) in the path specification.

Usage

validatePathIsAbsolute(path)

Arguments

path

A valid file path name.

Value

Error in case a relative path is found, otherwise no output will be returned.

Examples

Run this code
# NOT RUN {
# no error if path is absolute
validatePathIsAbsolute("Organism|path")

# error otherwise
# validatePathIsAbsolute("Organism|*path")
# }

Run the code above in your browser using DataLab