Skip to content

Commit

Permalink
fix deleteFile call
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed May 22, 2024
1 parent d225fb3 commit 306c06b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/ZenodoManager.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#' zen_files <- ZENODO$getFiles(myrec$id)
#'
#' #delete a file?
#' ZENODO$deleteFile(myrec$id, zen_files[[1]]$id)
#' ZENODO$deleteFile(myrec$id, zen_files[[1]]$filename)
#' }
#'
#' @note Main user class to be used with \pkg{zen4R}
Expand Down Expand Up @@ -1400,7 +1400,7 @@ ZenodoManager <- R6Class("ZenodoManager",
cli::cli_alert_info(infoMsg)
self$INFO(infoMsg)
invisible(lapply(out$files, function(x){
self$deleteFile(out$id, x$id)
self$deleteFile(out$id, x$filename)
Sys.sleep(0.6)
}))
}
Expand Down
2 changes: 1 addition & 1 deletion man/ZenodoManager.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 306c06b

Please sign in to comment.