[SPARK-15637][SPARKR] fix R tests on R 3.2.2
[SPARK-15637][SPARKR] fix R tests on R 3.2.2

## What changes were proposed in this pull request?

Change version check in R tests

## How was this patch tested?

R tests
shivaram

Author: felixcheung <felixcheung_m@hotmail.com>

Closes #13369 from felixcheung/rversioncheck.

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