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
db_type(db)
db_type(db$con)
}
Run the code above in your browser using DataLab