load_csv_files: load_csv_files

View source: R/utils.R

load_csv_filesR Documentation

load_csv_files

Description

Load one or more internal, i.e. included with the package, csv (or csv.gz) data files.

Usage

load_csv_files(filenames, optionals, quiet = FALSE, dummy = NULL, ...)

Arguments

filenames

Character vector of filenames to load

optionals

Logical vector, specifying whether corresponding file is optional

quiet

Logical - suppress messages?

dummy

Not used, here as a hack for drake

...

Any other parameter to pass to readr::read_csv

Details

The data frames read in are marked as inputs, not ones that have been computed, via add_comments. Optional files that are not found as returned as NA in the list.

Value

A list of data frames (tibbles).


JGCRI/gcamdata documentation built on March 21, 2023, 2:19 a.m.