get_token: Check Protected Planet API Token

Description Usage Arguments Details Value Examples

View source: R/get_token.R

Description

This function checks if the user has stored a valid Protected Planet API token in the R environment file (.Renviron).

Usage

1
get_token(key = "WDPA_KEY")

Arguments

key

a character providing the WDPA token name stored in the .Renviron file. Default is WDPA_KEY.

Details

Before using this package for the first time, the user must follow these steps:

Value

A vector of length one with the value of the API token.

Examples

1
2
3
4
5
## Not run: 
## Check if Protected Planet API token is stored ----
worldpa::get_token()

## End(Not run)

FRBCesab/worldpa documentation built on Feb. 26, 2021, 2:38 a.m.