update_package: Update a package with modified metadata.

Description Usage Arguments Details Value

View source: R/packaging.R

Description

The modified metadata should be set in the 'env' variable. For example, if your original metadata is:

Usage

1
update_package(inventory, package, env = NULL)

Arguments

inventory

(data.frame) An inventory.

package

(character) The package identifier.

env

(character) Environment

Details

/home/you/originals/dir/a.xml

and your modified metadata is in

/home/someone_else/modified/dir/a.xml

Then your env should be:

env$base_path <- "/home/you/" env$alternate_path <- "/home/someone_else"

Note that the data files are not updated either so all that's happening is the metadata object and resource map are being updated.

Note that this function checks if the old objects (metadata and resource map) exist on the Member Node before doing their work and will call createObject() instead of updateObject() if the object didn't already exist.

Value

TRUE or FALSE depending on sucess (logical)


NCEAS/arcticdatautils documentation built on July 14, 2018, 2:05 p.m.