check_path: check if a path is an exisiting file or directory

View source: R/check_path.R

check_pathR Documentation

check if a path is an exisiting file or directory

Description

check if a path is an exisiting file or directory

Usage

check_path(path, type = c("file", "directory"), error = TRUE)

Arguments

path

the path of the directory or file name

type

either "file" or "directory"

error

When TRUE (default), the function returns an error when a variable is missing. Otherwise it returns a warning.


inbo/n2khelper documentation built on March 26, 2022, 1:51 p.m.