Learn R Programming

ridigbio

ridigbio is an R package to access iDigBio (Integrated Digitized Biocollections).

Installation

ridigbio is avaliable via CRAN.

install.packages("ridigbio")

Error Messages

If R says the package is unavailable, you may not have set a CRAN mirror. You can do so with:

chooseCRANmirror()

If R says that a binary package is not available, your version of R may be too old. Please review the versions of R that CRAN has built packages for on the CRAN ridigbio package page.

You can download the source package and install manually if there is no package built for your version of R. You may also need to install any dependencies.

install.packages("ridigbio", type="source")

On Linux, you may encounter an error during the installation process if you do not have libcurl installed. The method for installing libcurl will vary between distributions, but on Ubuntu you can install the latest version via:

sudo apt install libcurl4

Getting Started

There are several articles that can help get you started:

Most iDigBio users are interested in downloading occurrence records:

library("ridigbio")
idig_search_records(rq=list(genus="galax"))
idig_search_records(rq=list(family="diapensiaceae"), limit=1000)

Meta

Copy Link

Version

Install

install.packages('ridigbio')

Monthly Downloads

8,667

Version

0.4.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 1st, 2024

Functions in ridigbio (0.4.1)

idig_search_records

Searching of iDigBio records
ridigbio-package

ridigbio: Interface to the iDigBio Data API
idig_view_records

view specimen endpoint
ignore_unused_imports

Stub function for passing import checks
ridigbio

Retrieve data from the iDigBio specimen data repository.
build_field_lists

Build fields and fields_exclude for queries.
idig_count_media

Count media endpoint
idig_check_error

Check is the request returned an error.
idig_check

check HTTP code
.onAttach

onAttach
idig_build_attrib

Attribution dataframe of iDigBio records query
idig_search_media

Searching of iDigBio media records
idig_top_media

Top media endpoint
idig_top_records

Top records endpoint
idig_parse

parse successfully returned request
idig_count_records

Count record endpoint
idig_GET

internal GET request
idig_meta_fields

meta fields endpoint
idig_validate

validate fields
idig_url

base URL
idig_POST

internal POST request
idig_search

Basic searching of iDigBio records
idig_view_media

view media endpoint
idig_version

API version