knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of rgeobon is to provide an interface between R and the GEOBON open data portal RESTfull API (please note that the portal is currently in beta). It allows to consult the datasets available on the portal and download them.
You can install rgeobon from GitHub:
devtools::install_github("vlucet/rgeobon")
This demonstrates the basic abilities of rgeobon
. You can first get the list of all the available datasets:
library(rgeobon) # Get the list of GEOBON datasets dataset_list <- geobon_list() dataset_list
From here, you can request information on a single record, and download the data associated with this record, if any is available.
# List possible ids dataset_list$id # Get a specific record geobon_get(id = 1) # Download the data from that record into a temp directory geobon_download(id = 1, path = tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.