Skip to content

Commit

Permalink
don't run this example since it requires an API key
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jan 6, 2025
1 parent 1b1df24 commit 0c23b23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion R/image.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ add_border = function(input, pixels = 1, color = 'black', output) {
#' more comprehensive implementation of the Tinify API, whereas
#' `xfun::tinify()` has only implemented the feature of shrinking images.
#' @export
#' @examplesIf interactive()
#' @examples
#' \dontrun{
#' f = xfun:::R_logo('jpg$')
#' xfun::tinify(f) # remember to set the API key before trying this
#' }
tinify = function(
input, output, quiet = FALSE, force = FALSE,
key = env_option('xfun.tinify.key'),
Expand Down
5 changes: 3 additions & 2 deletions man/tinify.Rd

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

0 comments on commit 0c23b23

Please sign in to comment.