split connection code from copying code
split connection code from copying code

rstudio/sparklyr,kevinykuo/sparklyr,rstudio/sparklyr,rstudio/sparklyr,kevinykuo/sparklyr,kevinykuo/sparklyr,rstudio/sparklyr,kevinykuo/sparklyr