Conversation
|
Nice, this quite an annoying missing piece in the documentation. Can I ask why not using |
|
@Rafnuss Main reason that credential-management systems are not used here is because they are often difficult to use within containerized environments such as Dockerfiles. Direct use of environment variables offers greater flexibility for using this package in a range of computational environments. And @rkrug sorry that I forgot about this PR. You still interested in moving ahead with it? |
|
No worries. Yes please - I am not using deposits at the moment, but I will use it again. And using these specific names for the end variables would make the handling more robust. |
| e <- Sys.getenv("FIGSHARE_TOKEN") | ||
| } | ||
|
|
||
| if (e == "") { |
There was a problem hiding this comment.
| if (e == "") { | |
| if (!nzchar (e)) { |
The code now checks if the environmental variables
are set and reads these. If they are not set, it uses the heuristic algorithm included before.