get_deposits_token: Retrieve a token for a specified deposits service.

get_deposits_tokenR Documentation

Retrieve a token for a specified deposits service.

Description

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

## Not run: 
token <- get_deposits_token (service = "figshare")

## End(Not run)

ropenscilabs/deposits documentation built on July 16, 2025, 1:38 p.m.