tryPath: Validation of the files or directories

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
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

1
2
3
4
5
6
## Not run: 
library(systemPipeRdata)
file <- system.file("extdata/workflows/rnaseq", "systemPipeRNAseq.Rmd", package="systemPipeRdata")
tryPath(path=file)
  
## End(Not run)

systemPipeR documentation built on Jan. 26, 2021, 2 a.m.