构建 R-4.3.3 时禁用 pdflatex 调用

问题描述 投票:0回答:1

我目前正在尝试构建最新的

R
->
4.3.3
之一。我将其安装为 EasyBuild 模块,但这并不是真正的问题。

问题是,在配置过程中,它会自动选择该系统上可用的

pdflatex
版本(查看下面的详细信息),由于某种原因,这会导致进程崩溃并出现此错误:

building/updating vignettes for package 'parallel' ...
building/updating vignettes for package 'utils' ...
building/updating vignettes for package 'stats' ...
processing 'reshape.Rnw'                                                                                          
Error: compiling TeX file 'reshape.tex' failed with message:                                                            
unable to run pdflatex on 'reshape.tex'
LaTeX errors:
! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not fou
nd.
<to be read again> 

pdflatex --version

pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020)
kpathsea version 6.3.2
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11

在线答案建议更新

texlive
,或安装
texlive-fonts-extra
软件包。现在,这在这个系统上可能会有点麻烦,所以我想找到一种方法在
pdflatex
的配置/构建过程中直接禁用
R
调用,因此跳过这个小插图步骤。

我尝试将以下标志添加到配置阶段,但它们似乎什么也没做:

--with-docs=no --with-vignettes=no --with-manual=no --with-build-vignettes=no

有什么建议吗?

非常感谢!

r pdflatex tex-live
1个回答
0
投票

我发现你需要编辑.eb文件并更改行

R CMD Rd2pdf --quiet --force --no-clean $R_DOC_DIR/man $R_DOC_DIR/html

进入

R CMD Rd2pdf --quiet --force --no-clean --pdf=no $R_DOC_DIR/man $R_DOC_DIR/html

避免使用 PDF,仅使用 HTML 作为文档。我不确定如果在构建过程中使用

--pdf=no
标志是否会起作用。

遵循本指南

© www.soinside.com 2019 - 2024. All rights reserved.