We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1cbaee commit c93c823Copy full SHA for c93c823
src/library/tools/R/testing.R
@@ -396,8 +396,11 @@ testInstalledPackage <-
396
cmd <- paste(shQuote(file.path(R.home("bin"), "R")),
397
"CMD BATCH --vanilla --no-timing", Ropts,
398
shQuote(Rfile), shQuote(failfile))
399
- if (.Platform$OS.type == "windows") Sys.setenv(R_LIBS="")
400
- else cmd <- paste("R_LIBS=", cmd)
+ if (.Platform$OS.type == "windows") {
+ Sys.setenv(R_LIBS="")
401
+ cmd <- paste(cmd, "LANGUAGE=C")
402
+ } else
403
+ cmd <- paste("R_LIBS= LANGUAGE=C", cmd)
404
res <- system(cmd)
405
if (res) {
406
message(gettextf("Error: running examples in %s failed", sQuote(Rfile)),
0 commit comments