is_file_accessible: Validate a vector of filenames or filepaths

View source: R/is_file_accessible.R

is_file_accessibleR Documentation

Validate a vector of filenames or filepaths

Description

This function validates that a vector of filenames or filepaths are accessible files that: are a file, exist, have read access, and are not empty. Dropbox files that are visible but not downloaded locally will be empty files, and they will not pass this validation.

Usage

is_file_accessible(filepaths)

Arguments

filepaths

A character vector

Value

A logical vector the same length as filepaths.


2DegreesInvesting/PACTA_analysis documentation built on April 19, 2023, 6:42 p.m.