I have installed the SparkR package from Spark distribution into the R library. I can call the following command and it seems to work properly: library(SparkR)<
library(SparkR)
Try to give execute permissions C:/sparkpath/bin/spark-submit.cmd. That worked for me.