check_eppo_token {pestr}R Documentation

EPPO Data Services token variable

Description

Maturing lifecycle

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)

[Package pestr version 0.8.2 Index]