Skip to content

Commit a799ceb

Browse files
committed
debug
1 parent 7f93ba9 commit a799ceb

2 files changed

Lines changed: 2403 additions & 0 deletions

File tree

‎R/api.R‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ get_datasets_metadata = function(dataset_DOI,
437437
modify_datasets = function(dataverse,
438438
dataset_DOI,
439439
metadata_path,
440+
wait_time=10,
440441
BASE_URL=Sys.getenv("BASE_URL"),
441442
API_TOKEN=Sys.getenv("API_TOKEN"),
442443
verbose=TRUE) {
@@ -465,6 +466,7 @@ modify_datasets = function(dataverse,
465466
}
466467

467468
if (verbose) message(paste0(round(i/nDOI*100, 1), "% : dataset ", convert_DOI_to_URL(dDOI), " modified"))
469+
Sys.sleep(wait_time)
468470
}
469471
}
470472

0 commit comments

Comments
 (0)