IQSS / dataverse-client-r

R Client for Dataverse Repositories
https://iqss.github.io/dataverse-client-r
61 stars 25 forks source link

Update add_dataset_file.R #117

Closed Danny-dK closed 2 years ago

Danny-dK commented 2 years ago

Change bod2 from list() to list(forceReplace = force) . The list() resulted in jsondata being run with '[]' which is not accepted within R anymore (unsure where the issue resulted from, could be either from httr, curl). The list(forceReplace = force) was already used at update_dataset_file(). Other option would be to use NULL instead of the list().

References https://github.com/IQSS/dataverse-client-r/issues/116#issuecomment-1084251443

kuriwaki commented 2 years ago

@Danny-dK thanks, a PR is helpful. Could you send it to IQSS:dev rather than master branch? I think you'd need to close and renew the PR in order to do this.