ropenscilabs / deposits

R Client for access to multiple data repository services
https://docs.ropensci.org/deposits/
Other
38 stars 3 forks source link

Add new 'deposit_add_resource()' method #74

Closed mpadge closed 1 year ago

mpadge commented 1 year ago

To enable "datapackage.json" files to be pre-generated and edited if desired prior to upload. Current workflow without this only auto-generates a "datapackage.json" file in deposit_upload_file(). This makes describing the frictionless part of the workflow (#26) more difficult than it should be. A deposit_add_resource() method will simplify the workflow, by permitting local-only initial generation and editing of "datapackage.json", and of all metadata within there.

There will then be some overlap between deposit_fill_metadata() and deposit_add_resource(). Once a "datapackage.json" file has been generated, passing the path to that file to either of these methods should yield the same result of a client populated with the metadata in that file.