Set the SPARK_HOME environment variable. This slightly speeds up some
operations, including the connection time.
spark_home_set(path = NULL, ...)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.
if (FALSE) { # \dontrun{
# Not run due to side-effects
spark_home_set()
} # }