d1_update: d1_update

Description Usage Arguments Value Examples

Description

Update an existing dataone entry

Usage

1
2
3
4
d1_update(pid, object, uid, new_id = getid("extract", object),
  cert = "/tmp/x509up_u1000",
  node = "https://knb.ecoinformatics.org/knb/d1/mn/v1",
  sysmeta = write_sysmeta(object, uid = uid, id = new_id))

Arguments

pid

package id to be updated

object

new data file to be uploaded

uid

the user id of the data maintainer

new_id

new package id to be assigned

cert

path to the x509 certificate from https://cilogon.org/?skin=DataONE

node

The URL to the DataONE node we intend to update. Defaults to the KNB

sysmeta

the required system metadata for the package, geranted by default.

Value

httr::response object indicating the success or failure of the call

Examples

1
2
3
4
5
6
7
8
## Not run: 
f <- system.file("doc", "reml_example.xml", package="reml")
d1_upload(f, "boettiger", id=uuid::UUIDgenerate(), node = knb_test)
change f

d1_update(

## End(Not run)

cboettig/dataone-lite documentation built on May 13, 2019, 2:06 p.m.