create_dummy_package: Create a test package

View source: R/helpers.R

create_dummy_packageR Documentation

Create a test package

Description

Create a full test data package with data objects and 1 metadata object. Size = the number of data objects you want in the dummy package + 1 metadata object.

Usage

create_dummy_package(mn, size = 2)

Arguments

mn

(MNode) The Member Node.

size

(numeric) The number of files in the package, including the metadata file.

Value

(list) The PIDs for all elements in the data package.

Examples

## Not run: 
# Set environment
cn <- CNode("STAGING2")
mn <- getMNode(cn,"urn:node:mnTestKNB")
#Create dummy package with 5 data objects and 1 metadata object
pids <- create_dummy_package(mn, 6)

## End(Not run)

NCEAS/arcticdatautils documentation built on July 13, 2024, 11:02 a.m.