check_eppo_token: EPPO Data Services token variable

View source: R/make_eppo_token.R

check_eppo_tokenR Documentation

EPPO Data Services token variable

Description

[Maturing] check_eppo_token should be used after create_eppo_token to check if the token is correctly recognized by EPPO Data Services API. As a reference it uses link to Xylella fastidiosa hosts database - XYLEFA eppocode. If token is recognized there will be no message. In other cases function will show following messages: No internet connection or Forbidden (HTTP 403).

Usage

check_eppo_token(token)

Arguments

token

object of class pestr_token.

Value

Silent NULL when there is no error, otherwise message.

See Also

To obtain your free EPPO token please register to EPPO Data Services https://data.eppo.int/

Examples

## Not run: 
eppo_token <- create_eppo_token("abcdef123456")
check_eppo_token(eppo_token)

## End(Not run)

mczyzj/pestr documentation built on Feb. 27, 2024, 8:58 p.m.