Description Usage Arguments Details Value Examples
This helper function allows you to set your API key in either a global or local
.Renviron file, for ease of use. All of the TargomoR
functions which call
the Targomo API require an API key, and use the TARGOMO_API_KEY
environment
variable by default. Similarly you can set your default region.
1 2 | setTargomoVariables(api_key = NULL, region = NULL, overwrite = FALSE,
global = FALSE)
|
api_key |
Your Targomo API key |
region |
Your preferred Targomo default region |
overwrite |
Whether to overwrite an existing setting |
global |
If TRUE, write to a global .Renviron in |
For available regions, see here: https://targomo.com/developers/resources/availability/
Invisibly, the API key - this function is called for its side effects
1 2 3 4 5 | ## Not run:
# write to a global file at Sys.getenv("HOME")
setTargomoVariables(api_key = "YOUR_SECRET_KEY", region = "asia", overwrite = TRUE, global = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.