From 3cb12759952bcc94f3f10b37cb4937ef93fe1284 Mon Sep 17 00:00:00 2001 From: Junyang Qian Date: Sun, 21 Aug 2016 19:49:26 -0700 Subject: [PATCH] Fix windows cache path. --- R/pkg/R/install.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/pkg/R/install.R b/R/pkg/R/install.R index 987bac7bebc0e..ff81e86835ff8 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",