tryPath: Validation of the files or directories

tryPathR Documentation

Validation of the files or directories

Description

Function to check if the full path (file or directory) exists.

Usage

tryPath(path)

Arguments

path

a character vector of full path name.

Details

This function produces a character vector of the file or directory name defined on the path argument.

Value

A character vector containing the name of the file or directory. If the path does not exist, it will return an error message.

Author(s)

Daniela Cassol

Examples

file <- system.file("extdata/", "targets.txt", package="systemPipeR")
tryPath(path=file)

tgirke/systemPipeR documentation built on Aug. 30, 2022, 10 p.m.