I'm using RStudio and SVN repository to version control my R projects and files. Usually I fetch data from database at the beginning in these scripts. I'm using RODBC like this:
channel <- odbcConnect(mydbconn, uid = "", pwd = "")
Now, I don't want to store connection details, user id's and password's in these scripts because if these are hard coded, everyone who can access to SVN repo is able to see my passwords etc.
What is the best approach in these kind of cases? How can I prompt these details (connection, userid and password) when this script is run (e.g from RStudio or from the command line)?