public class RUtils
extends Object
Constructor and Description |
---|
RUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getEncryptionEnabled(JavaSparkContext sc) |
static boolean |
isRInstalled()
Check if R is installed before running tests that use R commands.
|
static boolean |
isSparkRInstalled()
Check if SparkR is installed before running tests that use SparkR.
|
static scala.Option<String> |
localSparkRPackagePath()
Get the SparkR package path in the local spark distribution.
|
static scala.Option<String> |
rPackages() |
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.
|
public static scala.Option<String> rPackages()
public static scala.Option<String> localSparkRPackagePath()
public static boolean isSparkRInstalled()
public static scala.collection.Seq<String> sparkRPackagePath(boolean isDriver)
This assumes that Spark properties spark.master
and spark.submit.deployMode
and environment variable SPARK_HOME
are set.
isDriver
- (undocumented)public static boolean isRInstalled()
public static boolean getEncryptionEnabled(JavaSparkContext sc)