knitr::opts_chunk$set( warning = FALSE, message = FALSE, collapse = TRUE, comment = "#>" )
remotes::install_github("ropenscilabs/taxadc")
library("taxadc") library("xml2")
out <- darwin_simple(type = "PhysicalObject", modified = "2009-02-12", language = "en", basisOfRecord = "PreservedSpecimen", taxonID = "12345", scientificName = "Poa annua") xml <- darwin_as_xml(out) xml_structure(xml)
write_xml(xml, (f <- tempfile(fileext=".xml"))) readLines(f, n = 2)
taxadc
in R doing citation(package = 'taxadc')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.