Repository: spark
Updated Branches:
  refs/heads/master 12c8c2160 -> a115a5439


[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 <felixcheun...@hotmail.com>

Closes #16590 from felixcheung/rcachedir.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/a115a543
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/a115a543
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/a115a543

Branch: refs/heads/master
Commit: a115a54399cd4bedb1a5086943a88af6339fbe85
Parents: 12c8c21
Author: Felix Cheung <felixcheun...@hotmail.com>
Authored: Mon Jan 16 09:35:52 2017 -0800
Committer: Shivaram Venkataraman <shiva...@cs.berkeley.edu>
Committed: Mon Jan 16 09:35:52 2017 -0800

----------------------------------------------------------------------
 R/pkg/R/install.R | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/a115a543/R/pkg/R/install.R
----------------------------------------------------------------------
diff --git a/R/pkg/R/install.R b/R/pkg/R/install.R
index 097b7ad..cb6bbe5 100644
--- a/R/pkg/R/install.R
+++ b/R/pkg/R/install.R
@@ -50,7 +50,7 @@
 #'                 \itemize{
 #'                   \item Mac OS X: \file{~/Library/Caches/spark}
 #'                   \item Unix: \env{$XDG_CACHE_HOME} if defined, otherwise 
\file{~/.cache/spark}
-#'                   \item Windows: 
\file{\%LOCALAPPDATA\%\\spark\\spark\\Cache}.
+#'                   \item Windows: 
\file{\%LOCALAPPDATA\%\\Apache\\Spark\\Cache}.
 #'                 }
 #' @param overwrite If \code{TRUE}, download and overwrite the existing tar 
file in localDir
 #'                  and force re-install Spark (in case the local directory or 
file is corrupted)
@@ -239,7 +239,7 @@ sparkCachePath <- function() {
                    "or restart and enter an installation path in localDir.")
       stop(msg)
     } else {
-      path <- file.path(winAppPath, "spark", "spark", "Cache")
+      path <- file.path(winAppPath, "Apache", "Spark", "Cache")
     }
   } else if (.Platform$OS.type == "unix") {
     if (Sys.info()["sysname"] == "Darwin") {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to