tinify_key | R Documentation |
Set your TinyPNG API key in the system environment, so it is
no longer necessary to explicitly provide an API key with every
call of tinify()
.
tinify_key(key)
key |
A string containing your TinyPNG.com API key. |
You can get a TinyPNG API key from https://tinypng.com/developers.
tinify()
to shrink image filesizes
tinify_defaults()
to set default arguments so they do not need to be
provided with every call of tinify()
## Not run: tinify_key("YOUR-API-KEY-HERE") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.