object_exists: Check if an object exists on a Member Node

View source: R/util.R

object_existsR Documentation

Check if an object exists on a Member Node

Description

This is a simple check for the HTTP status of a /meta/PID call on the provided Member Mode.

Usage

object_exists(node, pids)

Arguments

node

(MNode) The Member Node to query.

pids

(character) The PID(s) to check the existence of.

Value

(logical) Whether the object exists.

Examples

## Not run: 
# Set environment
cn <- CNode("STAGING2")
mn <- getMNode(cn,"urn:node:mnTestKNB")
pids <- c("urn:uuid:3e5307c4-0bf3-4fd3-939c-112d4d11e8a1",
"urn:uuid:23c7cae4-0fc8-4241-96bb-aa8ed94d71fe")

object_exists(mn, pids)

## End(Not run)

NCEAS/arcticdatautils documentation built on Aug. 28, 2023, 12:10 p.m.