knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
rreptiledb allows you to search and download data hosted on the Reptile Database through R.
Install from GitHub with:
pak::pkg_install("matthewlewis896/rreptiledb")
Load the package using:
library(rreptiledb)
Download the latest species checklist on the reptile database with:
sp_list <- rd_species()
Fetch data for any species using rd_fetch()
:
sp <- rd_fetch(binomial = "Boa constrictor")
This returns a list
with named items as they appear on the Reptile Database. For instance:
print(sp$Higher_Taxa) [1] "Boidae (Boinae), Henophidia, Alethinophidia, Serpentes, Squamata (snakes)" print(sp$Subspecies) [1] "Boa constrictor constrictor LINNAEUS 1758" "Boa constrictor longicauda PRICE & RUSSO 1991" [3] "Boa constrictor occidentalis PHILIPPI 1873" "Boa constrictor ortonii COPE 1877"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.