[R] installation: while running make, unable to run pdflatex on 'NEWS.tex'

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Sat Mar 2 08:42:28 CET 2024


В Fri, 1 Mar 2024 10:46:53 -0500
Benjamin Tyner <btyner using gmail.com> пишет:

> my platform info:
> 
>     Platform: x86_64-pc-linux-gnu (64-bit)
>     Running under: Ubuntu 22.04.4 LTS

Quick things first: have you installed all the build-dependencies? apt
build-dep r-base (maybe with --install-suggests? haven't tried that in
a while) should do that. In particular, the build dependencies include
texlive-fonts-extra and texlive-latex-extra. That's a lot of packages,
but some of them are required to compile LaTeX documents produced by R.

>     you should 'make docs' now ...
>     make[1]: Entering directory '/home/btyner/R-4.3.3/doc'
>     creating doc/NEWS
>     creating doc/NEWS.pdf
>     Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet =
>     quiet, :
>     unable to run pdflatex on 'NEWS.tex'
>     LaTeX errors:
>     ! LaTeX Error: File `pdftexcmds.sty' not found.

Can you compile a minimal LaTeX document? Something like:

\documentclass{article}
\begin{document}
\[ \mathbf{y} = \mathbf{X} \beta \]
\end{document}

Does tools::texi2pdf('THISFILE.tex') fail with a similar error message?

-- 
Best regards,
Ivan



More information about the R-help mailing list