ropensci / EDIutils

An API Client for the Environmental Data Initiative Repository
https://docs.ropensci.org/EDIutils/
Other
10 stars 2 forks source link

In vignettes/retrieve_downloads.Rmd documentation on using .Renviron is confusing. #31

Closed ARC-LTER closed 2 years ago

ARC-LTER commented 2 years ago

It is unclear what content to put in '.Renviron' for login(). The Authentication section in invignettes/evaluate_and_upload.Rmd has a more extensive explanation of authenticating but not for using .Renviron. From https://db.rstudio.com/best-practices/managing-credentials/ it looks like one could put the following in the .Renviron file. userId = "my_name" userPass = "my_secert" And use login(userId = Sys.getenv("userId"),userPass = Sys.getenv("userPass"))

clnsmth commented 2 years ago

Hi @ARC-LTER. The version of retrieve_downloads.Rmd you are referencing has been updated (see here). There's no need to add credentials to the .Renviron file. However, your proposed solution should work just fine.

clnsmth commented 2 years ago

The .Renviron file reference has been removed from the vignettes.