Skip to content

Commit c93c823

Browse files
author
smeyer
committed
avoid spurious Rdiff from testing examples in a non-English locale
git-svn-id: https://svn.r-project.org/R/trunk@87258 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent e1cbaee commit c93c823

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/library/tools/R/testing.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,11 @@ testInstalledPackage <-
396396
cmd <- paste(shQuote(file.path(R.home("bin"), "R")),
397397
"CMD BATCH --vanilla --no-timing", Ropts,
398398
shQuote(Rfile), shQuote(failfile))
399-
if (.Platform$OS.type == "windows") Sys.setenv(R_LIBS="")
400-
else cmd <- paste("R_LIBS=", cmd)
399+
if (.Platform$OS.type == "windows") {
400+
Sys.setenv(R_LIBS="")
401+
cmd <- paste(cmd, "LANGUAGE=C")
402+
} else
403+
cmd <- paste("R_LIBS= LANGUAGE=C", cmd)
401404
res <- system(cmd)
402405
if (res) {
403406
message(gettextf("Error: running examples in %s failed", sQuote(Rfile)),

0 commit comments

Comments
 (0)