get_id: eLTER get_id function

View source: R/get_id.R

get_idR Documentation

eLTER get_id function

Description

Internal function to retrieve json content from ID

Usage

get_id(deimsid, resource = "sites", test, ...)

Arguments

deimsid

A character. It is the DEIMS ID of the site, activity or dataset from DEIMS-SDR website. DEIMS ID information here.

resource

Character: one among "sites" (default), "activities" or "datasets" ("networks" currently not tested).

test

Logical: if TRUE, content is not retrieved from https://deims.org but internally (only for some defined IDs). Used for testing purposes to avoid errors in case or HTTP error 500. If missing, the content of the internal variable

...

Arguments to be passed to httr::RETRY().

jj

a character

Value

A character containing the json content, and an attribute status.

Author(s)

Alessandro Oggioni, phD (2020) oggioni.a@irea.cnr.it

Luigi Ranghetti, phD (2021) luigi@ranghetti.info

Paolo Tagliolato, PhD (2021) tagliolato.p@irea.cnr.it


oggioniale/ReLTER documentation built on Jan. 4, 2024, 3:48 p.m.