From 365f032145dc799cf6be8753444d03ba1424709d Mon Sep 17 00:00:00 2001 From: hornik Date: Sun, 19 Jan 2025 15:23:50 +0000 Subject: [PATCH] Do not add \inputencoding when installing LaTeX help and using default UTF-8 encoding. Fixes issue for R CMD check --install-args="--latex" reported on the R-devel mailing list. Thanks to Peter Ruckdeschel and Ivan Krylov. git-svn-id: https://svn.r-project.org/R/trunk@87598 00db46b3-68df-0310-9c12-caf00c1e9a41 --- src/library/tools/R/install.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/library/tools/R/install.R b/src/library/tools/R/install.R index b6889aaf3a..4e3f1277aa 100644 --- a/src/library/tools/R/install.R +++ b/src/library/tools/R/install.R @@ -3132,7 +3132,8 @@ if(FALSE) { if (!file_test("-f", ff) || file_test("-nt", f, ff)) { showtype(type) .convert(Rd2latex(Rd, ff, defines = NULL, - outputEncoding = outenc)) + outputEncoding = outenc, + writeEncoding = (outenc != "UTF-8"))) } } if ("example" %in% types) {