try_read: reads rds or csv with tryCatch

View source: R/general_functions.R

try_readR Documentation

reads rds or csv with tryCatch

Description

reads rds or csv with tryCatch

Usage

try_read(filename, rds, ...)

Arguments

filename

character vector of length 1: with or without extension

Details

rationale for existence: if it's not known beforehand whether we're reading an rds or csv, may pass nonsensical arguments, so ignore if these are causing an error

Value

the read data frame


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.