diff options
author | Junyang Qian <junyangq@databricks.com> | 2016-08-22 10:03:48 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2016-08-22 10:03:48 -0700 |
commit | 209e1b3c0683a9106428e269e5041980b6cc327f (patch) | |
tree | a56c463821bf05fb3500d4505e6df63e5d0e749c /R/pkg | |
parent | b264cbb16fb97116e630fb593adf5898a5a0e8fa (diff) | |
download | spark-209e1b3c0683a9106428e269e5041980b6cc327f.tar.gz spark-209e1b3c0683a9106428e269e5041980b6cc327f.tar.bz2 spark-209e1b3c0683a9106428e269e5041980b6cc327f.zip |
[SPARKR][MINOR] Fix Cache Folder Path in Windows
## What changes were proposed in this pull request?
This PR tries to fix the scheme of local cache folder in Windows. The name of the environment variable should be `LOCALAPPDATA` rather than `%LOCALAPPDATA%`.
## How was this patch tested?
Manual test in Windows 7.
Author: Junyang Qian <junyangq@databricks.com>
Closes #14743 from junyangq/SPARKR-FixWindowsInstall.
Diffstat (limited to 'R/pkg')
-rw-r--r-- | R/pkg/R/install.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/R/install.R b/R/pkg/R/install.R index 987bac7beb..ff81e86835 100644 --- a/R/pkg/R/install.R +++ b/R/pkg/R/install.R @@ -212,7 +212,7 @@ hadoop_version_name <- function(hadoopVersion) { # adapt to Spark context spark_cache_path <- function() { if (.Platform$OS.type == "windows") { - winAppPath <- Sys.getenv("%LOCALAPPDATA%", unset = NA) + winAppPath <- Sys.getenv("LOCALAPPDATA", unset = NA) if (is.na(winAppPath)) { msg <- paste("%LOCALAPPDATA% not found.", "Please define the environment variable", |