|
36 | 36 | #' \code{without-hadoop}. |
37 | 37 | #' |
38 | 38 | #' @param hadoopVersion Version of Hadoop to install. Default is \code{"2.7"}. It can take other |
39 | | -#' version number in the format of "int.int". |
| 39 | +#' version number in the format of "x.y" where x and y are integer. |
40 | 40 | #' If \code{hadoopVersion = "without"}, "Hadoop free" build is installed. |
41 | 41 | #' See |
42 | 42 | #' \href{http://spark.apache.org/docs/latest/hadoop-provided.html}{ |
|
50 | 50 | #' \itemize{ |
51 | 51 | #' \item Mac OS X: \file{~/Library/Caches/spark} |
52 | 52 | #' \item Unix: \env{$XDG_CACHE_HOME} if defined, otherwise \file{~/.cache/spark} |
53 | | -#' \item Win XP: |
54 | | -#' \file{C:\\Documents and Settings\\<username>\\Local Settings\\Application |
55 | | -#' Data\\spark\\spark\\Cache} |
56 | | -#' \item Win Vista: |
57 | | -#' \file{C:\\Users\\<username>\\AppData\\Local\\spark\\spark\\Cache} |
| 53 | +#' \item Windows: \file{\%LOCALAPPDATA\%\\spark\\spark\\Cache}. See |
| 54 | +#' \href{https://www.microsoft.com/security/portal/mmpc/shared/variables.aspx}{ |
| 55 | +#' Windows Common Folder Variables} about \%LOCALAPPDATA\% |
58 | 56 | #' } |
59 | 57 | #' @param overwrite If \code{TRUE}, download and overwrite the existing tar file in localDir |
60 | 58 | #' and force re-install Spark (in case the local directory or file is corrupted) |
@@ -210,7 +208,7 @@ hadoop_version_name <- function(hadoopVersion) { |
210 | 208 | spark_cache_path <- function() { |
211 | 209 | if (.Platform$OS.type == "windows") { |
212 | 210 | winAppPath <- Sys.getenv("%LOCALAPPDATA%", unset = NA) |
213 | | - if (is.null(winAppPath)) { |
| 211 | + if (is.na(winAppPath)) { |
214 | 212 | msg <- paste("%LOCALAPPDATA% not found.", |
215 | 213 | "Please define the environment variable", |
216 | 214 | "or restart and enter an installation path in localDir.") |
|
0 commit comments