R/utils-upload.R

Defines functions imgur_upload

Documented in imgur_upload

#' Upload an image to imgur.com
#'
#' This function is an alias to `xfun::upload_imgur()`. It is kept in
#' \pkg{knitr} only for backward-compatibility reasons. You are recommended to
#' use `xfun::upload_imgur()` directly instead.
#' @param file,key,... See [xfun::upload_imgur()].
#' @export
#' @keywords internal
imgur_upload = function(file, key = xfun::env_option('knitr.imgur.key'), ...) {
  xfun::upload_imgur(file, key, ..., include_xml = TRUE)
}

Try the knitr package in your browser

Any scripts or data that you put into this service are public.

knitr documentation built on Sept. 7, 2026, 1:07 a.m.