get_all_versions: Get the PIDs of all versions of an object

View source: R/util.R

get_all_versionsR Documentation

Get the PIDs of all versions of an object

Description

Get the PIDs of all versions of an object.

Usage

get_all_versions(node, pid)

Arguments

node

(MNode) The Member Node to query.

pid

(character) Any object in the chain.

Value

(character) A vector of PIDs in the chain, in order.

Examples

## Not run: 
cn <- CNode("STAGING2")
mn <- getMNode(cn,"urn:node:mnTestKNB")
pid <- "urn:uuid:3e5307c4-0bf3-4fd3-939c-112d4d11e8a1"

ids <- get_all_versions(mn, pid)

## End(Not run)

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