dataverse_api_token: Dataverse API token

View source: R/api-token.R

dataverse_api_tokenR Documentation

Dataverse API token

Description

Check that the Dataverse API token is set and if so show it

Usage

dataverse_api_token()

Details

An API token is required for the R dataverse client to work. The token can be obtained by signing in to your Dataverse account and selecting "API token" from the dropdown menu. The token should then be used to set the DATAVERSE_KEY option, i.e. ⁠Sys.setenv("DATAVERSE_KEY = '{api key}')⁠. I do this in my R profile file so it's automatically done for every R session (usethis::edit_r_profile()).

https://guides.dataverse.org/en/latest/user/account.html#api-token

https://github.com/IQSS/dataverse-client-r#keys

Value

The token. If the token is not set, an error message will be thrown.


andybega/icews documentation built on July 7, 2023, 1:29 p.m.