简体   繁体   中英

Hide credentials in package development in R

I'm developing a package for my company, and I want to need to hide the credentials of the connections to redshift databases. Is there an easy way to set it up?

Try this:

  1. Create a file my_credentials.env
  2. At the beginning of the code run readRenviron("my_credentials.env")
  3. Access your variables by Sys.getenv("MY_VARIABLE")

More information over here basic or advanced

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM