This method provides the ability to update a data or metadata object to the Member Node
provided in the 'x' parameter. In DataONE, both the original object and the new object are
maintained, each with its own persistent identifier, and the 'obsoletes' field in the SystemMetadata is
used to reflect the fact that the new object replaces the old. Both objects remain accessible.
updateObject(x, ...)# S4 method for MNode
updateObject(x, pid, file = as.character(NA), newpid, sysmeta, dataobj = NULL)
A character containing the identifier if successful.
The MNode instance on which the object will be created
(Not yet used.)
The identifier of the object to be updated
the absolute file location of the object to be uploaded
The identifier of the new object to be created
a SystemMetadata instance describing properties of the object
a raw object to use for the upload, instead of the contents of the file argument.
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.