Skip to contents

Tokens should be stored as local environment variables, optionally defined in a ~/.Renviron file, and should contain the name of the desired deposits service.

Usage

get_deposits_token(service = NULL, sandbox = FALSE)

Arguments

service

Name of desired service; must be a value in the "name" column of deposits_services.

sandbox

If TRUE, retrieve token for sandbox, rather than actual API.

Value

API token for nominated service.

Examples

if (FALSE) { # \dontrun{
token <- get_deposits_token (service = "figshare")
} # }