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)
After installing Hadoop followed by Spark.
spark_path <- strsplit(system("brew info apache-spark",intern=T)[4],' ')[[1]][1] # Get your spark path .libPaths(c(file.path(spark_path,"libexec", "R", "lib"), .libPaths())) library(SparkR