Installing and loading the package:

devtools::install_github("liibre/Rocc")

This package also downloads records from from GBIF and jabot collections. The function rgbif2() encapulates funtions from rgbif package to receive a species scientific name and return the output as a .csv file written on disk.

Using the funtion rgbif2

g01 <- rgbif2(filename = "gbif-01",
              species = "Aspidosperma limae")
#> Making request to GBIF...
#> Writing results/gbif-01.csv on disk.

dim(g01)
#> [1]  4 83

g02 <- rgbif2(filename = "gbif-02", 
              species = "Aspidosperma melanocalyx")
#> Making request to GBIF...
#> Writing results/gbif-02.csv on disk.
dim(g02)
#> [1] 500 167