Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# roxygen2 (development version)

* `@includeRmd` now additionally sets language to the Language in DESCRIPTION to make output reproducible (#1622)

* The check for unexported S3 methods was improved, so it does not hang any more
if a largish data object is in the package (#1593, @jranke).

Expand Down
6 changes: 6 additions & 0 deletions R/rd-eval.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@ local_reproducible_output <- function(.envir = parent.frame()) {
.local_envir = .envir
)
withr::local_envvar(RSTUDIO = NA, .local_envir = .envir)

if (isTRUE(capabilities("NLS")) && Sys.getenv("LANG") != "C") {
lang <- unname(desc::desc_get("Language")) %|% "en"
withr::local_language(lang, .local_envir = .envir)
}

withr::local_collate("C", .local_envir = .envir)
}