View source: R/ifcb_helper_functions.R
retrieve_worms_records | R Documentation |
This helper function was deprecated as it has been replaced by a main function: ifcb_match_taxon_name()
.
This helper function attempts to retrieve WoRMS records using the provided taxa names. It retries the operation if an error occurs, up to a specified number of attempts.
retrieve_worms_records(
taxa_names,
max_retries = 3,
sleep_time = 10,
marine_only = FALSE,
verbose = TRUE
)
taxa_names |
A character vector of taxa names to retrieve records for. |
max_retries |
An integer specifying the maximum number of attempts to retrieve records. |
sleep_time |
A numeric value indicating the number of seconds to wait between retry attempts. |
marine_only |
Logical. If TRUE, restricts the search to marine taxa only. Default is FALSE. |
verbose |
A logical indicating whether to print progress messages. Default is TRUE. |
A list of WoRMS records or NULL if the retrieval fails after the maximum number of attempts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.