Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upsimple way to supply token #30
Comments
|
Thanks @hansvancalster, i'm aware of the printing issue when putting As for the function you suggest, i don't see direct added value to have it. As it is, user is free to call directly Sys.getenv with the variable name he choses for setting the Zenodo token. |
|
Thanks for looking into this! Regarding the zenodo_pat() function, I had a similar default behaviour for |
|
@hansvancalster i've pushed this into master. For hiding the password, i've resolved it by implementing 'keyring' package at #33. |
Hi! At my institution we are using Zenodo more and more to archive data. We are looking for ways to interact with Zenodo from R and this package looks very promising.
One thing I noticed when trying the functions was that a safe way to supply and access a token is missing. I wrote a small function taken from
remotes::github_pat(). The idea is to add the token to ZENODO_PAT variable in the.Renvironfile. The following functionzenodo_pat()can then be used to get the personal access token:Usage:
However, when printing
zenodothe secret token will be printed as well, which I think should best be avoided.I will also file another issue with an idea for a function to download a zenodo archive.