## Not run: ------------------------------------
# # First encrypt a password using secret-tool as follows:
# # secret-tool store --label=mylabel db mydb user user1
# # now return the password above to the R environment
# x <- decrypt_gk_pw("db mydb user user1")
#
# # function is best used in a connection string command:
# ch <- odbcConnect("some dsn", uid = "user1", pwd = decrypt_gk_pw("db mydb user user1"))
## ---------------------------------------------
Run the code above in your browser using DataLab