View source: R/update_tagexplorer.R
update_tagexplorer | R Documentation |
This function first authenticates (out of band) against a Google account
given through the email Sys.getenv("GOOGLE_MAPS_APIKEY")
.
Next, selected columns of tagged wastd_data$animals
are written over an
existing sheet "Encounters" in the Google Sheet with ID
Sys.getenv("TURTLE_SHEET")
.
Lastly, metadata (number of records, data accessed on, data uploaded on) are
written to a sheet "Metadata".
Messages choose verbosity from wastdr::get_wastdr_verbose()
.
update_tagexplorer( wastd_data, doc_id = Sys.getenv("TURTLE_SHEET"), api_key = Sys.getenv("GOOGLE_MAPS_APIKEY") )
wastd_data |
The output of |
doc_id |
The Google Sheet ID, default: |
api_key |
A Google API key, default: |
Should the total number of cells exceed the Google Sheet limit of 5M cells, this function aborts with an informative error message.
A list with keys:
enc
The selected columns and (all) rows of tagged wastd_data$animals
.
enc_sheet
The Google sheet ID for the sheet containing encounters
.
meta_sheet
The Google sheet ID for the sheet containing the metadata.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.