I have an app that uses a connection with a Postgree DB in R and dbconnect from DBI package. The app works fines when i use a data frame for the credentials of users in shin