Skip to contents

Call this function if you wish to accept a specific license.

Usage

cds_accept_licence(license, revision, ..., token = cds_get_token())

Arguments

license

The license id you wish to accept.

revision

The revision number of the license you are accepting. Should always be the latest revision.

...

Ignored

token

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

Value

Returns a data.frame containing the accepted license

Examples

if (interactive() && cds_token_works()) {
  cds_accept_licence("cc-by", 1)
}