neon_store.Rdimport neon data into a local database
neon_store(
table = NA,
product = NA,
type = NA,
dir = neon_dir(),
db = neon_db(neon_db_dir(), read_only = FALSE),
n = 500L,
quiet = FALSE,
...
)Include only files matching this table name (or regex pattern). (optional).
A NEON productCode or list of product codes, see examples.
Should we prefer the basic or expanded version of this product? Note that not all products have expanded formats.
Location where files should be downloaded. By default will
use the appropriate applications directory for your system
(see tools::R_user_dir()). This default also be configured by
setting the environmental variable NEONSTORE_HOME, see Sys.setenv or
Renviron.
A connection to a write-able relational database backend,
see neon_db().
number of files that should be read per iteration
show progress?
Arguments passed on to neon_read
sensor_metadatalogical, default TRUE. Should we add metadata fields from file names of sensor data into the table? Adds DomainID, SiteID, horizontalPosition, verticalPosition, and publicationDate. Results in slower parsing.
keep_filenameShould we include a column indicating the original
file name for each row? Can be a useful source of additional metadata that
NEON may omit from the raw files (i.e. siteID), but will also result in
slower parsing. Default FALSE.
altrepenable or disable altrep. Logical, default FALSE. Setting to
TRUE can speed up reading, but may cause vroom::vroom to throw
mapping error: Too many open files.
filesoptionally, specify a vector of file paths directly (e.g. as
provided from neon_index) and specify table argument as NULL.
extonly match files with this file extension(s)
timestamponly match timestamps prior this. See details in neon_index().
Should be a datetime POSIXct object (or coerce-able string)
start_dateDownload only files as recent as (YYYY-MM-DD). Leave
as NA to download up to the most recent available data.
end_dateDownload only files up to end_date (YYYY-MM-DD). Leave as
NA to download all prior data.
site4-letter site code(s) to filter on. Leave as NA to search all.
releaseSelect only data files associated with a particular release tag, see https://www.neonscience.org/data-samples/data-management/data-revisions-releases, e.g. "RELEASE-2021". Releases are associated with a specific DOI and the promise that files associated with a particular release will not change.
the index of files read in (invisibly)