read_file: read_file

read_fileR Documentation

read_file

Description

Reads in a file from path, using given function if the file exists and matches optional extensions list

Usage

read_file(path, fun, extensions = NA)

Arguments

path

(string) Path to read the file in from

fun

(function) Function used to read in the file

extensions

(list) List of valid extensions

Value

Data from the file if validation succeeds, NULL otherwise


SwanseaUniversityMedical/ConceptLibraryClient documentation built on April 14, 2025, 12:45 p.m.