Skip to content

Commit

Permalink
suppress warnings from Sys.setlocale('LC_NUMERIC'): rstudio/rmarkdown…
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Feb 8, 2024
1 parent 8a5cb42 commit 578a3eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: xfun
Type: Package
Title: Supporting Functions for Packages Maintained by 'Yihui Xie'
Version: 0.41.10
Version: 0.41.11
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person("Wush", "Wu", role = "ctb"),
Expand Down
2 changes: 1 addition & 1 deletion R/string.R
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ decimal_dot = function(x) {
lcn = Sys.getlocale('LC_NUMERIC')
if (lcn != 'C') {
Sys.setlocale('LC_NUMERIC', 'C')
on.exit(Sys.setlocale('LC_NUMERIC', lcn), add = TRUE)
on.exit(suppressWarnings(Sys.setlocale('LC_NUMERIC', lcn)), add = TRUE)
}
x
}
Expand Down

0 comments on commit 578a3eb

Please sign in to comment.