Internal function for handling accessing the API,data formatting, and errors
TNRS_core(
url = "https://tnrsapi.xyz/tnrs_api.php",
mode = "resolve",
data_json = NULL,
sources = c("wcvp", "wfo"),
classification = "wfo",
matches = "best",
accuracy = NULL,
batches = NULL
)Server URL to use. Defaults to the stable production version
Character. Options are "resolve" and "parse". Default option is "resolve"
Either NULL (the default) or properly formatted json
Character. Taxonomic sources to use. Default is c("wcvp", "wfo"). Options include "wfo", "wcvp", and "cact".
Character. Family classification to use. Currently options include "wfo" (the default).
Character. Should all matches be returned ("all") or only the best match ("best", the default)?
numeric. If specified, only matches with a score greater than or equal to the supplied accuracy level will be returned.
NULL or Numeric. Optional number of batches to divide the request into for parallel processing. CUrrently isn't implemented