neon_import.Rd
neon_import()
only reads in previously saved archives from neon_export()
.
This can be useful in cases where
see neon_download()
to download data directly from NEON.
neon_import(archive, overwrite = TRUE, dir = neon_dir())
path to the zip archive to be imported
should we overwrite any existing files?
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.
## tempfiles for example purposes only!
archive <- tempfile()
neondir <- tempdir()
neon_export(archive, dir = neondir)
#> No files found.
neon_import(archive)
#> Warning: /tmp/RtmpvWqYJ0/file17c63e105d4d not found