We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39b8735 commit 2aea71cCopy full SHA for 2aea71c
tools/config.R
@@ -149,6 +149,13 @@ read_r_config <- function(
149
on.exit(setwd(owd), add = TRUE)
150
R <- file.path(R.home("bin"), "R")
151
152
+ # suppress cygwin path warnings for windows
153
+ if (Sys.info()[["sysname"]] == "Windows") {
154
+ CYGWIN <- Sys.getenv("CYGWIN")
155
+ Sys.setenv(CYGWIN = "nodosfilewarning")
156
+ on.exit(Sys.setenv(CYGWIN = CYGWIN), add = TRUE)
157
+ }
158
+
159
values <- unlist(list(...), recursive = TRUE)
160
if (length(values) == 0) {
161
if (verbose)
@@ -168,6 +175,9 @@ read_r_config <- function(
168
175
names(config) <- values
169
176
}
170
177
178
+ if (is.null(envir))
179
+ return(config)
180
171
181
list2env(config, envir = envir)
172
182
173
183
0 commit comments