Description Usage Arguments Details Value Examples
This function checks if the user has stored a valid Protected Planet API
token in the R environment file (.Renviron
).
1 | get_token(key = "WDPA_KEY")
|
key |
a character providing the WDPA token name stored in the
|
Before using this package for the first time, the user must follow these steps:
Fill in the form available at: https://api.protectedplanet.net/request to obtain a personal API token;
Store the token in the .Renviron
file under the key WDPA_KEY
.
User can use the function usethis::edit_r_environ
to open this
file;
Restart R.
A vector of length one with the value of the API token.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.