[SPARKR] add csv tests
[SPARKR] add csv tests

## What changes were proposed in this pull request?

Add unit tests for csv data for SPARKR

## How was this patch tested?

unit tests

Author: Felix Cheung <felixcheung_m@hotmail.com>

Closes #13904 from felixcheung/rcsv.

brad-kaiser/spark,rekhajoshm/spark,ron8hu/spark,ptkool/spark,gengliangwang/spark,JerryLead/spark,szhem/spark,gengliangwang/spark,ajaysaini725/spark,WeichenXu123/spark,techaddict/spark,witgo/spark,publicRoman/spark,pgandhi999/spark,xflin/spark,JerryLead/spark,stanzhai/spark,nilsgrabbert/spark,JoshRosen/spark,guoxiaolongzte/spark,aosagie/spark,loneknightpy/spark,rekhajoshm/spark,ericvandenbergfb/spark,jrshust/spark,JerryLead/spark,apache-spark-on-k8s/spark,srowen/spark,nchammas/spark,lxsmnv/spark,milliman/spark,jlopezmalla/spark,darionyaphet/spark,tejasapatil/spark,ConeyLiu/spark,liyichao/spark,ioana-delaney/spark,ioana-delaney/spark,rezasafi/spark,liyichao/spark,jlopezmalla/spark,tejasapatil/spark,ajaysaini725/spark,rikima/spark,setjet/spark,SHASHANKB/spark,ericvandenbergfb/spark,janewangfb/spark,kimoonkim/spark,mdespriee/spark,cloud-fan/spark,byakuinss/spark,ptkool/spark,panfengfeng/spark,ron8hu/spark,highfei2011/spark,skonto/spark,apache/spark,HyukjinKwon/spark,LantaoJin/spark,milliman/spark,matthewfranglen/spark,esi-mineset/spark,techaddict/spark,chuckchen/spark,witgo/spark,lxsmnv/spark,liutang123/spark,nlalevee/spark,goldmedal/spark,mdespriee/spark,icexelloss/spark,sahilTakiar/spark,sahilTakiar/spark,ConeyLiu/spark,debugger87/spark,janewangfb/spark,ibm-research-ireland/sparkoscope,darionyaphet/spark,ajaysaini725/spark,tejasapatil/spark,tengpeng/spark,zhouyejoe/spark,zero323/spark,janewangfb/spark,jrshust/spark,yanboliang/spark,esi-mineset/spark,ericvandenbergfb/spark,highfei2011/spark,maropu/spark,1haodian/spark,jrshust/spark,skonto/spark,mzl9039/spark,sachintyagi22/spark,WeichenXu123/spark,chuckchen/spark,aosagie/spark,BryanCutler/spark,rekhajoshm/spark,liyichao/spark,ajaysaini725/spark,adrian-ionescu/apache-spark,WindCanDie/spark,icexelloss/spark,lvdongr/spark,zzcclp/spark,spark-test/spark,WindCanDie/spark,minixalpha/spark,patrick-nicholson/spark,michalsenkyr/spark,shubhamchopra/spark,hhbyyh/spark,JerryLead/spark,saturday-shi/spark,aray/spark,caneGuy/spark,joseph-torres/spark,xflin/spark,joseph-torres/spark,zhouyejoe/spark,sachintyagi22/spark,yanboliang/spark,shaneknapp/spark,dhruve/spark,wangyum/spark,shuangshuangwang/spark,mike0sv/spark,actuaryzhang/spark,joseph-torres/spark,mzl9039/spark,jiangxb1987/spark,zzcclp/spark,ibm-research-ireland/sparkoscope,ptkool/spark,holdenk/spark,UndeadBaneGitHub/spark,saturday-shi/spark,srowen/spark,bOOm-X/spark,maropu/spark,brad-kaiser/spark,debugger87/spark,kevinyu98/spark,jianran/spark,mdespriee/spark,kimoonkim/spark,nlalevee/spark,taroplus/spark,nchammas/spark,wzhfy/spark,eyalfa/spark,caneGuy/spark,mike0sv/spark,joseph-torres/spark,UndeadBaneGitHub/spark,shubhamchopra/spark,zuotingbing/spark,hhbyyh/spark,apache/spark,someorz/spark,nlalevee/spark,WindCanDie/spark,kimoonkim/spark,ptkool/spark,lxsmnv/spark,BryanCutler/spark,milliman/spark,Aegeaner/spark,dbtsai/spark,cloud-fan/spark,JoshRosen/spark,narahari92/spark,darionyaphet/spark,facaiy/spark,vinodkc/spark,icexelloss/spark,publicRoman/spark,ron8hu/spark,bOOm-X/spark,adrian-ionescu/apache-spark,liutang123/spark,kevinyu98/spark,vinodkc/spark,eyalfa/spark,aosagie/spark,markhamstra/spark,big-pegasus/spark,ahnqirage/spark,tengpeng/spark,guoxiaolongzte/spark,alunarbeach/spark,liyichao/spark,WindCanDie/spark,jlopezmalla/spark,yanboliang/spark,lxsmnv/spark,hhbyyh/spark,big-pegasus/spark,sahilTakiar/spark,ericvandenbergfb/spark,SHASHANKB/spark,aray/spark,icexelloss/spark,markhamstra/spark,saltstar/spark,markhamstra/spark,1haodian/spark,highfei2011/spark,wangyum/spark,spark-test/spark,zero323/spark,huang1900/spark,tengpeng/spark,yanboliang/spark,UndeadBaneGitHub/spark,skonto/spark,HyukjinKwon/spark,aray/spark,liyichao/spark,zero323/spark,ibm-research-ireland/sparkoscope,jlopezmalla/spark,rekhajoshm/spark,bravo-zhang/spark,brad-kaiser/spark,nilsgrabbert/spark,ueshin/apache-spark,ptkool/spark,minixalpha/spark,SnappyDataInc/spark,alunarbeach/spark,aosagie/spark,cin/spark,UndeadBaneGitHub/spark,jkbradley/spark,hhbyyh/spark,minixalpha/spark,kissmetrics/spark,kimoonkim/spark,ConeyLiu/spark,1haodian/spark,holdenk/spark,MLnick/spark,rednaxelafx/apache-spark,xuanyuanking/spark,nlalevee/spark,ptkool/spark,mdespriee/spark,debugger87/spark,HyukjinKwon/spark,shubhamchopra/spark,cloud-fan/spark,WindCanDie/spark,sachintyagi22/spark,vinodkc/spark,Aegeaner/spark,tengpeng/spark,highfei2011/spark,ahnqirage/spark,gengliangwang/spark,publicRoman/spark,wangyum/spark,spark-test/spark,zzcclp/spark,ibm-research-ireland/sparkoscope,shubhamchopra/spark,minixalpha/spark,1haodian/spark,lvdongr/spark,BryanCutler/spark,wzhfy/spark,rikima/spark,nilsgrabbert/spark,jlopezmalla/spark,maropu/spark,ConeyLiu/spark,dbtsai/spark,actuaryzhang/spark,szhem/spark,cin/spark,loneknightpy/spark,setjet/spark,JoshRosen/spark,kevinyu98/spark,mike0sv/spark,dongjoon-hyun/spark,liutang123/spark,dbtsai/spark,spark-test/spark,michalsenkyr/spark,joseph-torres/spark,dbtsai/spark,adrian-ionescu/apache-spark,aray/spark,ConeyLiu/spark,wangyum/spark,lxsmnv/spark,ueshin/apache-spark,taroplus/spark,publicRoman/spark,lvdongr/spark,maropu/spark,aray/spark,big-pegasus/spark,tejasapatil/spark,LantaoJin/spark,minixalpha/spark,aokolnychyi/spark,Panos-Bletsos/spark-cost-model-optimizer,MLnick/spark,ddna1021/spark,kissmetrics/spark,BryanCutler/spark,esi-mineset/spark,mahak/spark,taroplus/spark,actuaryzhang/spark,dongjoon-hyun/spark,ibm-research-ireland/sparkoscope,setjet/spark,jianran/spark,byakuinss/spark,narahari92/spark,SnappyDataInc/spark,bravo-zhang/spark,sureshthalamati/spark,lvdongr/spark,WeichenXu123/spark,chuckchen/spark,poffuomo/spark,ron8hu/spark,jianran/spark,zhouyejoe/spark,caneGuy/spark,taroplus/spark,alunarbeach/spark,kissmetrics/spark,akopich/spark,rekhajoshm/spark,big-pegasus/spark,HyukjinKwon/spark,darionyaphet/spark,yanboliang/spark,caneGuy/spark,shuangshuangwang/spark,witgo/spark,huang1900/spark,rikima/spark,tejasapatil/spark,WeichenXu123/spark,brad-kaiser/spark,bdrillard/spark,cloud-fan/spark,michalsenkyr/spark,pgandhi999/spark,huang1900/spark,kiszk/spark,dbtsai/spark,wangmiao1981/spark,zzcclp/spark,saltstar/spark,nilsgrabbert/spark,poffuomo/spark,bravo-zhang/spark,guoxiaolongzte/spark,WeichenXu123/spark,nilsgrabbert/spark,patrick-nicholson/spark,cloud-fan/spark,jianran/spark,techaddict/spark,bdrillard/spark,mzl9039/spark,setjet/spark,sahilTakiar/spark,darionyaphet/spark,publicRoman/spark,someorz/spark,wangyum/spark,bdrillard/spark,jiangxb1987/spark,milliman/spark,zuotingbing/spark,WeichenXu123/spark,michalsenkyr/spark,mike0sv/spark,apache-spark-on-k8s/spark,stanzhai/spark,akopich/spark,techaddict/spark,mahak/spark,saturday-shi/spark,sureshthalamati/spark,shaneknapp/spark,caneGuy/spark,ron8hu/spark,nlalevee/spark,wzhfy/spark,eyalfa/spark,debugger87/spark,chuckchen/spark,sachintyagi22/spark,LantaoJin/spark,aray/spark,poffuomo/spark,xuanyuanking/spark,ajaysaini725/spark,spark-test/spark,caneGuy/spark,actuaryzhang/spark,bravo-zhang/spark,setjet/spark,facaiy/spark,LantaoJin/spark,SHASHANKB/spark,yanboliang/spark,zzcclp/spark,panfengfeng/spark,jkbradley/spark,jkbradley/spark,tengpeng/spark,hvanhovell/spark,nchammas/spark,dongjoon-hyun/spark,bOOm-X/spark,jkbradley/spark,WindCanDie/spark,nchammas/spark,big-pegasus/spark,saltstar/spark,kiszk/spark,eyalfa/spark,witgo/spark,mzl9039/spark,publicRoman/spark,andrewor14/spark,wangyum/spark,taroplus/spark,ahnqirage/spark,skonto/spark,facaiy/spark,map222/spark,kimoonkim/spark,cin/spark,liutang123/spark,zero323/spark,yanboliang/spark,someorz/spark,witgo/spark,ioana-delaney/spark,sahilTakiar/spark,adrian-ionescu/apache-spark,saturday-shi/spark,chuckchen/spark,szhem/spark,UndeadBaneGitHub/spark,metamx/spark,saltstar/spark,jianran/spark,apache-spark-on-k8s/spark,gengliangwang/spark,kiszk/spark,akopich/spark,kiszk/spark,adrian-ionescu/apache-spark,aray/spark,shuangshuangwang/spark,BryanCutler/spark,stanzhai/spark,wzhfy/spark,ueshin/apache-spark,aosagie/spark,shubhamchopra/spark,kissmetrics/spark,nilsgrabbert/spark,Panos-Bletsos/spark-cost-model-optimizer,jrshust/spark,goldmedal/spark,ConeyLiu/spark,rednaxelafx/apache-spark,facaiy/spark,mahak/spark,ddna1021/spark,aosagie/spark,patrick-nicholson/spark,poffuomo/spark,Aegeaner/spark,kiszk/spark,bdrillard/spark,pgandhi999/spark,brad-kaiser/spark,janewangfb/spark,srowen/spark,sachintyagi22/spark,zuotingbing/spark,andrewor14/spark,map222/spark,Panos-Bletsos/spark-cost-model-optimizer,eyalfa/spark,markhamstra/spark,cin/spark,Panos-Bletsos/spark-cost-model-optimizer,xflin/spark,rekhajoshm/spark,kissmetrics/spark,actuaryzhang/spark,nlalevee/spark,michalsenkyr/spark,jiangxb1987/spark,akopich/spark,loneknightpy/spark,skonto/spark,ibm-research-ireland/sparkoscope,zhouyejoe/spark,ptkool/spark,HyukjinKwon/spark,ajaysaini725/spark,holdenk/spark,xflin/spark,metamx/spark,ahnqirage/spark,ddna1021/spark,bravo-zhang/spark,mahak/spark,zero323/spark,rezasafi/spark,saturday-shi/spark,janewangfb/spark,HyukjinKwon/spark,MLnick/spark,aokolnychyi/spark,dbtsai/spark,andrewor14/spark,hvanhovell/spark,bOOm-X/spark,holdenk/spark,srowen/spark,milliman/spark,szhem/spark,debugger87/spark,map222/spark,SnappyDataInc/spark,aokolnychyi/spark,gengliangwang/spark,hvanhovell/spark,WindCanDie/spark,kissmetrics/spark,SHASHANKB/spark,SnappyDataInc/spark,1haodian/spark,chuckchen/spark,janewangfb/spark,goldmedal/spark,ron8hu/spark,jlopezmalla/spark,jiangxb1987/spark,wzhfy/spark,mike0sv/spark,lxsmnv/spark,wangmiao1981/spark,apache/spark,andrewor14/spark,lvdongr/spark,alunarbeach/spark,byakuinss/spark,rednaxelafx/apache-spark,rikima/spark,guoxiaolongzte/spark,Panos-Bletsos/spark-cost-model-optimizer,goldmedal/spark,andrewor14/spark,cloud-fan/spark,kevinyu98/spark,cin/spark,tengpeng/spark,sahilTakiar/spark,andrewor14/spark,big-pegasus/spark,srowen/spark,bravo-zhang/spark,bdrillard/spark,jkbradley/spark,HyukjinKwon/spark,adrian-ionescu/apache-spark,actuaryzhang/spark,esi-mineset/spark,loneknightpy/spark,minixalpha/spark,eyalfa/spark,witgo/spark,akopich/spark,dhruve/spark,apache/spark,ahnqirage/spark,shuangshuangwang/spark,saturday-shi/spark,cin/spark,zzcclp/spark,shaneknapp/spark,holdenk/spark,rekhajoshm/spark,zero323/spark,mike0sv/spark,lvdongr/spark,akopich/spark,wangmiao1981/spark,aokolnychyi/spark,map222/spark,xuanyuanking/spark,liyichao/spark,ueshin/apache-spark,caneGuy/spark,byakuinss/spark,JerryLead/spark,rednaxelafx/apache-spark,apache/spark,xuanyuanking/spark,WeichenXu123/spark,zuotingbing/spark,nchammas/spark,zero323/spark,1haodian/spark,highfei2011/spark,zuotingbing/spark,janewangfb/spark,ueshin/apache-spark,maropu/spark,aokolnychyi/spark,panfengfeng/spark,shaneknapp/spark,rednaxelafx/apache-spark,holdenk/spark,xuanyuanking/spark,map222/spark,metamx/spark,nilsgrabbert/spark,sachintyagi22/spark,JoshRosen/spark,dongjoon-hyun/spark,kevinyu98/spark,sachintyagi22/spark,alunarbeach/spark,rezasafi/spark,joseph-torres/spark,szhem/spark,mzl9039/spark,ConeyLiu/spark,facaiy/spark,liutang123/spark,patrick-nicholson/spark,kimoonkim/spark,bravo-zhang/spark,stanzhai/spark,metamx/spark,MLnick/spark,alunarbeach/spark,SnappyDataInc/spark,highfei2011/spark,taroplus/spark,milliman/spark,icexelloss/spark,vinodkc/spark,kimoonkim/spark,JoshRosen/spark,shuangshuangwang/spark,michalsenkyr/spark,rezasafi/spark,rikima/spark,tejasapatil/spark,shaneknapp/spark,SHASHANKB/spark,LantaoJin/spark,byakuinss/spark,debugger87/spark,jiangxb1987/spark,liutang123/spark,patrick-nicholson/spark,saltstar/spark,goldmedal/spark,SHASHANKB/spark,1haodian/spark,Aegeaner/spark,jiangxb1987/spark,zhouyejoe/spark,hvanhovell/spark,techaddict/spark,actuaryzhang/spark,panfengfeng/spark,shuangshuangwang/spark,witgo/spark,zhouyejoe/spark,skonto/spark,xflin/spark,adrian-ionescu/apache-spark,dhruve/spark,saturday-shi/spark,skonto/spark,ahnqirage/spark,metamx/spark,hhbyyh/spark,dongjoon-hyun/spark,zzcclp/spark,poffuomo/spark,aosagie/spark,bOOm-X/spark,patrick-nicholson/spark,kevinyu98/spark,taroplus/spark,JerryLead/spark,mdespriee/spark,narahari92/spark,apache-spark-on-k8s/spark,UndeadBaneGitHub/spark,zuotingbing/spark,panfengfeng/spark,darionyaphet/spark,zuotingbing/spark,setjet/spark,vinodkc/spark,mzl9039/spark,narahari92/spark,pgandhi999/spark,wangmiao1981/spark,kevinyu98/spark,bdrillard/spark,kiszk/spark,hvanhovell/spark,BryanCutler/spark,shaneknapp/spark,Aegeaner/spark,stanzhai/spark,lxsmnv/spark,jlopezmalla/spark,nlalevee/spark,cloud-fan/spark,eyalfa/spark,xflin/spark,liutang123/spark,pgandhi999/spark,UndeadBaneGitHub/spark,vinodkc/spark,someorz/spark,ddna1021/spark,spark-test/spark,aokolnychyi/spark,wzhfy/spark,bdrillard/spark,liyichao/spark,apache-spark-on-k8s/spark,SnappyDataInc/spark,stanzhai/spark,maropu/spark,hvanhovell/spark,pgandhi999/spark,mahak/spark,rezasafi/spark,esi-mineset/spark,sureshthalamati/spark,rezasafi/spark,shubhamchopra/spark,brad-kaiser/spark,MLnick/spark,JerryLead/spark,ericvandenbergfb/spark,techaddict/spark,setjet/spark,jrshust/spark,xflin/spark,akopich/spark,dhruve/spark,ibm-research-ireland/sparkoscope,hhbyyh/spark,icexelloss/spark,ueshin/apache-spark,panfengfeng/spark,MLnick/spark,saltstar/spark,huang1900/spark,ddna1021/spark,mike0sv/spark,shubhamchopra/spark,jrshust/spark,dongjoon-hyun/spark,facaiy/spark,ddna1021/spark,chuckchen/spark,loneknightpy/spark,wangmiao1981/spark,mahak/spark,metamx/spark,wzhfy/spark,nchammas/spark,techaddict/spark,szhem/spark,shaneknapp/spark,JoshRosen/spark,ericvandenbergfb/spark,alunarbeach/spark,Panos-Bletsos/spark-cost-model-optimizer,jianran/spark,szhem/spark,sureshthalamati/spark,narahari92/spark,narahari92/spark,loneknightpy/spark,guoxiaolongzte/spark,patrick-nicholson/spark,saltstar/spark,sureshthalamati/spark,ueshin/apache-spark,srowen/spark,SHASHANKB/spark,hhbyyh/spark,narahari92/spark,cin/spark,hvanhovell/spark,spark-test/spark,jiangxb1987/spark,guoxiaolongzte/spark,mahak/spark,poffuomo/spark,markhamstra/spark,Aegeaner/spark,byakuinss/spark,publicRoman/spark,maropu/spark,big-pegasus/spark,brad-kaiser/spark,icexelloss/spark,markhamstra/spark,JoshRosen/spark,milliman/spark,map222/spark,poffuomo/spark,darionyaphet/spark,someorz/spark,ahnqirage/spark,Panos-Bletsos/spark-cost-model-optimizer,rednaxelafx/apache-spark,gengliangwang/spark,xuanyuanking/spark,rezasafi/spark,nchammas/spark,ddna1021/spark,ioana-delaney/spark,ioana-delaney/spark,rednaxelafx/apache-spark,apache/spark,SnappyDataInc/spark,apache-spark-on-k8s/spark,MLnick/spark,guoxiaolongzte/spark,wangmiao1981/spark,xuanyuanking/spark,dhruve/spark,gengliangwang/spark,apache-spark-on-k8s/spark,andrewor14/spark,sureshthalamati/spark,jkbradley/spark,zhouyejoe/spark,esi-mineset/spark,ericvandenbergfb/spark,aokolnychyi/spark,mdespriee/spark,wangmiao1981/spark,kiszk/spark,goldmedal/spark,kissmetrics/spark,jkbradley/spark,LantaoJin/spark,ioana-delaney/spark,dhruve/spark,facaiy/spark,dongjoon-hyun/spark,metamx/spark,bOOm-X/spark,ioana-delaney/spark,markhamstra/spark,sureshthalamati/spark,huang1900/spark,huang1900/spark,vinodkc/spark,LantaoJin/spark,rikima/spark,Aegeaner/spark,jianran/spark,mzl9039/spark,joseph-torres/spark,panfengfeng/spark,goldmedal/spark,michalsenkyr/spark,debugger87/spark,srowen/spark,ron8hu/spark,tengpeng/spark,rikima/spark,someorz/spark,bOOm-X/spark,dhruve/spark,sahilTakiar/spark,pgandhi999/spark,map222/spark,huang1900/spark,someorz/spark,mdespriee/spark,loneknightpy/spark,esi-mineset/spark,minixalpha/spark,stanzhai/spark,shuangshuangwang/spark,lvdongr/spark,dbtsai/spark,ajaysaini725/spark,tejasapatil/spark,holdenk/spark,byakuinss/spark,highfei2011/spark,jrshust/spark,wangyum/spark,apache/spark,BryanCutler/spark