validatePathIsAbsolute: Check if path is absolute

View source: R/validation-helpers.R

validatePathIsAbsoluteR Documentation

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

# no error if path is absolute
validatePathIsAbsolute("Organism|path")

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

ospsuite.utils documentation built on March 18, 2022, 6:44 p.m.