Check IUCN Red List Status for a Species
rfs_iucn_check.Rd
This function queries the IUCN Red List API for the conservation status of a given species (genus and epithet). It handles errors gracefully, logs issues, and returns a data frame with the status and any error messages.
Arguments
- species
Character. The full species name in the format "Genus epithet" (e.g., "Pterophyllum scalare"). Multiple species can be checked by providing a vector of species names.
- iucn_api_key
Character. Your IUCN API key.
- log_path
Character. The path to the directory where error logs will be saved. Default is "iucn_log/".