R: Set the SPARK_HOME environment variable

spark_home_set {sparklyr} | R Documentation

## Set the SPARK_HOME environment variable

### Description

Set the `SPARK_HOME` environment variable. This slightly speeds up some operations, including the connection time.

### Usage

    spark_home_set(path = NULL, verbose = getOption("sparklyr.verbose",
      is.null(path)))

### Arguments

`path` | A string containing the path to the installation location of Spark. If `NULL`, the path to the most latest Spark/Hadoop versions is used.
`verbose` | Logical. Should the function explain what is it doing?

### Value

The function is mostly invoked for the side-effect of setting the `SPARK_HOME` environment variable. It also returns `TRUE` if the environment was successfully set, and `FALSE` otherwise.

### Examples

    ## Not run:
    # Not run due to side-effects
    spark_home_set()

    ## End(Not run)

[Package sparklyr version 0.7.0 Index]