Accessing the plus API pool

get_cr_token(service = "https://api.crossref.org", ...)

Arguments

service

Service name, a character scalar.

...

Arguments passed on to keyring::key_get

username

Username, a character scalar, or NULL if the key is not associated with a username.

keyring

For systems that support multiple keyrings, specify the name of the keyring to use here. If NULL, then the default keyring is used. See also has_keyring_support().

Functions

  • get_cr_token: Get the token to authenticate into the plus tool.

    In this order, returns the first hit of:

    1. CR_MD_PLUS_TOKEN environment variable (recommended only for secure environment variables in the cloud),

    2. an entry in the OS keychain manager for service and username,

    3. NULL with a warning.

See also

Other api pool access functions: polite, pools()