DataONEorg / rdataone

R package for reading and writing data at DataONE data repositories
http://doi.org/10.5063/F1M61H5X
36 stars 19 forks source link

Add function for cloning packages and objects #221

Open maier-m opened 6 years ago

maier-m commented 6 years ago

Proposal to add a D1Client function that will assist with cloning packages and objects. See https://github.com/NCEAS/datamgmt/blob/master/R/clone_package.R for examples (which would be adjusted to achieve this proposal).

There are two use cases I can think of for needing this functionality.

  1. Cloning between "STAGING" and "PROD" environments and vice versa
  2. Manual replication between nodes (uncommon but useful for some nodes with restrictive replication policies like Arctic Data Center).
gothub commented 6 years ago

A vignette explaining when and how to use this function would be very helpful.

maier-m commented 6 years ago

@gothub The how would be simple for me to write. The when would require input from others if there are additional use cases beyond what I detailed above.

gothub commented 6 years ago

@maier-m the 'when' I was referring to is the two use cases that you listed. Others can certainly add to any vignette that is created for this.