identifier_exists: Check if identifier exists

View source: R/identifier_exists.R

identifier_existsR Documentation

Check if identifier exists

Description

This function quickly checks to see if an identifier exists. It does a quick head request to skip the overhead of item metadta retrieval. This will also return FALSE if the identifier exists but is associated with an item that is unavailable due to permission restrictions.

Usage

identifier_exists(sb_id, ...)

Arguments

sb_id

An sbitem object or a character ScienceBase ID corresponding to the item

...

Additional parameters are passed on to GET, POST, HEAD, PUT.

Value

Logical, TRUE or FALSE

Examples


# identifier exists
identifier_exists(sb_id = "4f4e4b24e4b07f02db6aea14")

# identifier does not exist
identifier_exists(sb_id = "aaaaaaakkkkkkkbbbbbb")


USGS-R/sbtools documentation built on Feb. 21, 2024, 10:15 a.m.