if (require(RMySQL) && mysqlHasDefault()) {
# connect to test database using rs-dbi
db <- src_mysql_cnf()
class(db)
db
# connect to another server using the 'client' group
src_mysql_cnf(groups = "client")
}
Run the code above in your browser using DataLab