This function allows you to update or set your Zenodo API access token.
The token will be saved to your .Renviron file for permanent storage
and will also be set for the current R session.
Arguments
- token
character. The Zenodo API access token. IfNULL(default), the function will interactively prompt you to enter the token. You can create a token here.
Details
The function performs the following actions:
If
tokenisNULL, prompts you to enter the tokenStrips any quotes from the token if accidentally included
Saves the token to your
.Renvironfile (located at~/.Renviron)Updates the token in your current R session
If a token already exists in
.Renviron, it will be updated
After updating the token, you may need to restart R/RStudio for the changes to take full effect, though the token will be available in the current session immediately.
Author
Mathias Harrer mathias.h.harrer@gmail.com
