Check whether scholarly identifiers are found in their respective registries.
Usage
id_exists(
x,
type = c("auto", scholidonline_types()),
provider = c("auto", .scholidonline_providers()),
...,
quiet = FALSE
)Arguments
- x
A character vector of identifiers.
- type
A single identifier type string, or
"auto"to infer the type for each element ofx. Seescholidonline_types()for supported values.- provider
A single provider string specifying which online service to use for the lookup. Use
"auto"to use the default provider for the resolved identifier type. In most cases,"auto"is appropriate.- ...
Reserved for future provider-specific arguments.
- quiet
A single logical value; if
TRUE, suppress provider warnings and messages where possible.
Value
A logical vector. TRUE indicates that the identifier was found,
FALSE indicates that it was not found, and NA indicates that the
input could not be identified, normalized, or checked reliably.
Details
Existence checking is not available for every identifier type supported
by scholid. Use scholidonline_capabilities() to see which types
support the exists operation and which providers implement it.
type must be a single value or "auto". For mixed identifier columns,
omit type or use type = "auto" so each element is classified
separately.
Examples
# \donttest{
id_exists("10.1038/nature12373", type = "doi")
#> [1] TRUE
id_exists(c("31452104", "PMC6784763"))
#> [1] TRUE TRUE
# }