File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,11 @@ sparkCachePath <- function() {
270270 if (is_windows()) {
271271 winAppPath <- Sys.getenv(" LOCALAPPDATA" , unset = NA )
272272 if (is.na(winAppPath )) {
273- stop(paste(" %LOCALAPPDATA% not found." ,
273+ message(" %LOCALAPPDATA% not found. Falling back to %USERPROFILE%." )
274+ winAppPath <- Sys.getenv(" USERPROFILE" , unset = NA )
275+ }
276+ if (is.na(winAppPath )) {
277+ stop(paste(" %LOCALAPPDATA% and %USERPROFILE% not found." ,
274278 " Please define the environment variable" ,
275279 " or restart and enter an installation path in localDir." ))
276280 } else {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ vignette: >
3030``` {r setup, include=FALSE}
3131library(knitr)
3232opts_hooks$set(eval = function(options) {
33- # override eval only on windows
33+ # override eval to FALSE only on windows
3434 if (.Platform$OS.type == "windows") {
3535 options$eval = FALSE
3636 }
You can’t perform that action at this time.
0 commit comments