Skip to content

Commit

Permalink
use a working key before xfun 0.51 is released
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jan 15, 2025
1 parent 80e37c0 commit 91eafea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/utils-upload.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
#' @export
#' @keywords internal
imgur_upload = function(file, key = xfun::env_option('knitr.imgur.key'), ...) {
# TODO: remove this after xfun 0.51
if (is.null(key)) key = paste(rev(strsplit('01a236c49e09142','')[[1]]), collapse = '')
xfun::upload_imgur(file, key, ..., include_xml = TRUE)
}

0 comments on commit 91eafea

Please sign in to comment.