Package org.apache.spark.api.r
Class RUtils
Object
org.apache.spark.api.r.RUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
static boolean
static boolean
Check if R is installed before running tests that use R commands.static boolean
Check if SparkR is installed before running tests that use SparkR.static scala.Option<String>
Get the SparkR package path in the local spark distribution.static scala.Option<String>
static scala.collection.Seq<String>
sparkRPackagePath
(boolean isDriver) Get the list of paths for R packages in various deployment modes, of which the first path is for the SparkR package itself.
-
Constructor Details
-
RUtils
public RUtils()
-
-
Method Details
-
rPackages
-
localSparkRPackagePath
Get the SparkR package path in the local spark distribution.- Returns:
- (undocumented)
-
isSparkRInstalled
public static boolean isSparkRInstalled()Check if SparkR is installed before running tests that use SparkR.- Returns:
- (undocumented)
-
sparkRPackagePath
Get the list of paths for R packages in various deployment modes, of which the first path is for the SparkR package itself. The second path is for R packages built as part of Spark Packages, if any exist. Spark Packages can be provided through the "--packages" or "--jars" command line options.This assumes that Spark properties
spark.master
andspark.submit.deployMode
and environment variableSPARK_HOME
are set.- Parameters:
isDriver
- (undocumented)- Returns:
- (undocumented)
-
isRInstalled
public static boolean isRInstalled()Check if R is installed before running tests that use R commands. -
isEncryptionEnabled
-
getJobTags
-