knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

rgeobon

Lifecycle: experimental License: MIT Coverage Status R build status

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.

Installation

You can install rgeobon from GitHub:

devtools::install_github("vlucet/rgeobon")

Example

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())


VLucet/rgeobon documentation built on March 17, 2021, 12:03 a.m.