Useful tutorials on using R with SQL and dbplyr package: