View source: R/cache_imap_data.R
cache_imap_data | R Documentation |
cache_imap_data()
is a wrapper for get_imap_data()
and
getdata::cache_location_data()
that save a layer from Maryland iMap or a
subset of a layer to a local file. By default, the data is saved to the
mapmaryland package cache folder.
cache_imap_data(
data = NULL,
nm = NULL,
...,
location = NULL,
name = NULL,
label = NULL,
fileext = "gpkg",
filename = NULL,
path = NULL,
prefix = NULL,
postfix = NULL,
cache = TRUE,
pkg = "getdata",
create = TRUE,
overwrite = FALSE,
call = caller_env()
)
data |
Data to pass to |
nm |
Layer name identifier used to retrieve url from |
... |
Additional parameters passed to |
location |
A |
name |
Name to make file name converted to snake case with
|
label |
Label to combine with name converted to snake case with
|
fileext |
File type or extension. Optional if filename or path include a file extension. |
filename |
File name; if filename is |
path |
Path to file or data directory. Optional. If path includes a file
extension and filename and fileext are both |
prefix |
File name prefix. "date" adds a date prefix, "time" adds a
date/time prefix; defaults to |
postfix |
File name postfix; defaults to |
cache |
If |
pkg |
Package name passed to appname parameter of
|
create |
If |
overwrite |
If |
call |
The execution environment of a currently
running function, e.g. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.