Skip to content

Commit 9758905

Browse files
felixcheungshivaram
authored andcommitted
[SPARK-19232][SPARKR] Update Spark distribution download cache location on Windows
## What changes were proposed in this pull request? Windows seems to be the only place with appauthor in the path, for which we should say "Apache" (and case sensitive) Current path of `AppData\Local\spark\spark\Cache` is a bit odd. ## How was this patch tested? manual. Author: Felix Cheung <felixcheung_m@hotmail.com> Closes #16590 from felixcheung/rcachedir. (cherry picked from commit a115a54) Signed-off-by: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
1 parent 4f3ce06 commit 9758905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/pkg/R/install.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#' \itemize{
5151
#' \item Mac OS X: \file{~/Library/Caches/spark}
5252
#' \item Unix: \env{$XDG_CACHE_HOME} if defined, otherwise \file{~/.cache/spark}
53-
#' \item Windows: \file{\%LOCALAPPDATA\%\\spark\\spark\\Cache}.
53+
#' \item Windows: \file{\%LOCALAPPDATA\%\\Apache\\Spark\\Cache}.
5454
#' }
5555
#' @param overwrite If \code{TRUE}, download and overwrite the existing tar file in localDir
5656
#' and force re-install Spark (in case the local directory or file is corrupted)
@@ -239,7 +239,7 @@ sparkCachePath <- function() {
239239
"or restart and enter an installation path in localDir.")
240240
stop(msg)
241241
} else {
242-
path <- file.path(winAppPath, "spark", "spark", "Cache")
242+
path <- file.path(winAppPath, "Apache", "Spark", "Cache")
243243
}
244244
} else if (.Platform$OS.type == "unix") {
245245
if (Sys.info()["sysname"] == "Darwin") {

0 commit comments

Comments
 (0)