From 80e37c0b1ca5300d85dd1d25446364492cf5e6dd Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Tue, 14 Jan 2025 17:13:43 -0600 Subject: [PATCH] remove the default imgur key: https://github.com/yihui/xfun/issues/97 --- DESCRIPTION | 2 +- R/utils-upload.R | 2 +- man/imgur_upload.Rd | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 500463fa9c..5148679c85 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: knitr Type: Package Title: A General-Purpose Package for Dynamic Report Generation in R -Version: 1.49.5 +Version: 1.49.6 Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666", URL = "https://yihui.org")), person("Abhraneel", "Sarma", role = "ctb"), diff --git a/R/utils-upload.R b/R/utils-upload.R index 886eb0e1c1..995bad49da 100644 --- a/R/utils-upload.R +++ b/R/utils-upload.R @@ -6,6 +6,6 @@ #' @param file,key,... See \code{xfun::\link[xfun]{upload_imgur}()}. #' @export #' @keywords internal -imgur_upload = function(file, key = xfun::env_option('knitr.imgur.key', '9f3460e67f308f6'), ...) { +imgur_upload = function(file, key = xfun::env_option('knitr.imgur.key'), ...) { xfun::upload_imgur(file, key, ..., include_xml = TRUE) } diff --git a/man/imgur_upload.Rd b/man/imgur_upload.Rd index 5bfc663905..5bcd3f9442 100644 --- a/man/imgur_upload.Rd +++ b/man/imgur_upload.Rd @@ -4,11 +4,7 @@ \alias{imgur_upload} \title{Upload an image to imgur.com} \usage{ -imgur_upload( - file, - key = xfun::env_option("knitr.imgur.key", "9f3460e67f308f6"), - ... -) +imgur_upload(file, key = xfun::env_option("knitr.imgur.key"), ...) } \arguments{ \item{file, key, ...}{See \code{xfun::\link[xfun]{upload_imgur}()}.}