Skip to content
Snippets Groups Projects
Commit 209e1b3c authored by Junyang Qian's avatar Junyang Qian Committed by Shivaram Venkataraman
Browse files

[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.
parent b264cbb1
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment