read_csv_alt: Read a csv file from two alternative paths.

Description Usage Arguments Value See Also Examples

Description

Read a csv file from two alternative paths, trying the first one first, and the alternative one second. This is useful in rmarkdown files as the working directory changes during knitting.

Usage

1

Arguments

file

Either a path to a file, a connection, or literal data (either a single string or a raw vector).

alt

Alternative file.

...

Arguments passed to readr::read_csv().

Value

A data frame.

See Also

readr::read_csv().

Examples

1
## Not run: read_csv_alt("myfile.csv", "./data-raw/myfile.csv")

forestgeo/ctfs documentation built on May 3, 2019, 6:44 p.m.