Skip to contents

In order to use specific features of the Climate Data Service, you may first need to accept specific licences. This function will list all licenses you have accepted.

Usage

cds_accepted_licences(
  scope = c("all", "dataset", "portal"),
  ...,
  token = cds_get_token()
)

Arguments

scope

Scope of the licenses to be listed should be one of "all" (default), "dataset" or "portal".

...

Ignored

token

An API key to be used for authentication. Will use cds_get_token() by default.

Value

Returns a data.frame listing the accepted licenses.

Examples

if (interactive() && cds_token_works()) {
  cds_accepted_licences("portal")
}