taxadc

knitr::opts_chunk$set(
  warning = FALSE,
  message = FALSE,
  collapse = TRUE,
  comment = "#>"
)

Build Status codecov Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. rstudio mirror downloads cran version

installation

remotes::install_github("ropenscilabs/taxadc")
library("taxadc")
library("xml2")

simple darwin core

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)

Meta



ropenscilabs/taxadc documentation built on May 17, 2022, 5:34 p.m.