Learn R Programming

pacha (version 0.1.1)

indexation_urls_pacha: Retrieve indexation URLs

Description

Retrieves URLs associated with the resolved taxon. For the web source, the result includes any URLs returned by ChecklistBank plus its canonical taxon page. For the local source, URLs are extracted from NameUsage.tsv; IPNI links are normalized to their canonical https://www.ipni.org/n/... form.

Usage

indexation_urls_pacha(species, language = NULL, source = NULL, refresh = FALSE)

indexation_urls_pacha_md( species, language = NULL, source = NULL, refresh = FALSE )

Value

indexation_urls_pacha() returns, visibly, a named character vector of URLs, or the localized no-data/connection message. indexation_urls_pacha_md() returns, invisibly, the emitted Markdown string, or "" when no URLs are available.

Arguments

species

Character scalar containing at least a genus and specific epithet.

language

Optional output-language code or alias used for labels.

source

Optional source override: "api"/"web" or "coldp"/"local". NULL uses the configured default ("api").

refresh

Logical scalar. If TRUE, fetches the selected source again instead of reusing its cached record.

See Also

accessors-pacha for a detailed description of plain-text and Markdown accessors.

Examples

Run this code
if (FALSE) {
indexation_urls_pacha("Bidens andicola")
indexation_urls_pacha("Bidens andicola", source = "coldp")
}
if (FALSE) {
indexation_urls_pacha_md("Bidens andicola")
}

Run the code above in your browser using DataLab