path_exists: Combine path and filename, then check if filename exists....

View source: R/util_files.R

path_existsR Documentation

Combine path and filename, then check if filename exists. Optionally, checks for present of compressed variant of this filename

Description

Combine path and filename, then check if filename exists. Optionally, checks for present of compressed variant of this filename

Usage

path_exists(path, file = NULL, try_compressed = FALSE, silent = FALSE)

Arguments

path

a directory on this computer. eg; "C:/temp" on windows or "/home/user1" on unix. Can also provide full path here and leave 'file' param as NULL

file

filename within the 'path'

try_compressed

if the requested filename is not available, try again with added file extensions known for compression (default: FALSE). See read_textfile_compressed() function docs for supported extensions

silent

on error, return an empty string instead of throwing an error (default: FALSE)


ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.