View source: R/tinify_defaults.R
tinify_defaults | R Documentation |
tinify()
functionSet some default options for tinify()
in the global environment, so it is no
longer necessary to explicitly provide each argument with every call of
tinify()
.
If called without any arguments, tinify_defaults()
will print
the current default options set to the console.
tinify_defaults(overwrite, suffix, quiet, return_path, resize)
overwrite |
Boolean, defaults to |
suffix |
String, defaults to |
quiet |
Boolean, defaults to |
return_path |
String or |
resize |
Named list or |
tinify()
to shrink image filesizes
tinify_key()
to set a default TinyPNG.com API key
## Not run: tinify_defaults(quiet = TRUE, suffix = "_small") # show current defaults set tinify_defaults() #> Tinify 'overwrite' set to: FALSE #> Tinify 'suffix' set to: "_small" #> Tinify 'quiet' set to: FALSE #> Tinify 'return_path' set to: No return #> Tinify 'resize' set to: No resize ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.