I ran into the same issue (on Ubuntu 20.04). I just copied everything from /usr/share/R/doc to /usr/lib/R:
A bit of a hack but then everything works fine. Best, Wolfgang >-----Original Message----- >From: R-package-devel [mailto:r-package-devel-boun...@r-project.org] On Behalf >Of >Göran Broström >Sent: Tuesday, 25 April, 2023 12:02 >To: Ivan Krylov >Cc: R-package-devel@r-project.org >Subject: Re: [R-pkg-devel] katex > >On 2023-04-25 10:02, Ivan Krylov wrote: >> On Mon, 24 Apr 2023 18:17:22 +0200 >> Göran Broström <g...@ehar.se> wrote: >> >>> cannot open file '/usr/lib/R/doc/html/katex/katex.js': No such >>> file or directory >> >>> I still get the error with R CMD check --as-cran. What am I >>> missing? Obviously /usr/lib/R/doc/html/katex/katex.js (no 'doc'), but >>> ... >>> >>> I am installing R via apt. >> >> Thank you for mentioning this detail! >> >> At least in Debian packages, R's copy of KaTeX lives in /usr/share: per >> Debian policy, "share" is for human-readable files like KaTeX, and >> "lib" is for shared libraries, compiled code and the like. >> >> For a copy of R built from source, it's not a problem: > >Thanks. I have now built R from source and can confirm that everything >works nicely. Can't remember when and why I stopped building R from >source, probably not a good idea. > >Göran ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel