0

I often write scripts which I put on Github. As much as I want to share my code, there are certain things such as passwords which I do not want share. Often my code would look something like this:

myapp <- oauth_app("app_name", "long_complicated_sha_code")
github_token <- oauth2.0_token(oauth_endpoints("github"), myapp) 
gtoken <- config(token = github_token)
req <- GET("https://api.github.com/rate_limit", gtoken)

What is a better way to manage usernames and passwords in scripts? I want to make the code as reproducible as possible, easy for myself to run, without sharing my usernames and passwords with the world.

histelheim
  • 4,938
  • 6
  • 33
  • 63

0 Answers0