rgbif gives you access to data from GBIF via their REST API. GBIF versions their API - we are currently using v1 of their API. You can no longer use their old API in this package - see ?rgbif-defunct.

Please cite rgbif. Run the following to get the appropriate citation for the version you’re using:

citation(package = "rgbif")

To get started, see:

Check out the rgbif paper for more information on this package and the sister Python and Ruby clients.

Note: Maximum number of records you can get with occ_search() and occ_data() is 100,000. See https://www.gbif.org/developer/occurrence

Installation

Or, install development version

install.packages("remotes")
remotes::install_github("ropensci/rgbif")
library("rgbif")

Note: Windows users have to first install Rtools (https://cran.r-project.org/bin/windows/Rtools/) to use devtools

Mac Users: (in case of errors)

Terminal:

Install gdal : https://github.com/edzer/sfr/blob/master/README.md#macos

brew install openssl

in R:

Screencast

Meta


This package is part of spocc, along with several other packages, that provide access to occurrence records from multiple data sources.