Learn R Programming

dataone (version 2.3.0)

updateSystemMetadata: Update the system metadata associated with an object.

Description

A modified SytemMetadata object can be sent to DataONE that contains updated information. This function allow updating of the system metadata without updating the object that it describes, so that mutable attributes such as accessPolicy can be updated easily.

Usage

updateSystemMetadata(x, ...)

# S4 method for MNode updateSystemMetadata(x, pid, sysmeta)

Value

A logical value, TRUE if the operation was successful, FALSE if there was an error.

Arguments

x

The MNode instance from which the SystemMetadata will be downloaded

...

(Not yet used.)

pid

The identifier of the object

sysmeta

a SystemMetadata instance with updated information.

Details

In the version 2.0 library and higher, this operation can utilize an 'dataone_token' option to provide credentials for write operations in DataONE. The authentication token is obtained from DataONE (see your profile on https://search.dataone.org). See the vignette("v01-dataone-overview") for details.

See Also