I was able to load the SparkR library into R / RStudio by doing the following:
Download and configure SparkR
1. Download spark-1.4.0 and unzip / unzip it
2. Install the spark, then go to the / spark 01.4.0 / R directory
3. In the terminal, run. / install -dev.sh. This will create a folder called "lib" in your directory.
Add SparkR to R.libPaths ()
4. In the terminal:
cat >> $HOME/.Rprofile <<EOT lib_path <- .libPaths() lib_path <- c(lib_path,"/MyDirectory/spark-1.4.0/R/lib") .libPaths(lib_path) rm(lib_path) EOT
- Download R, then use the library (SparkR).
sunny source share