[R-pkg-devel] katex

Viechtbauer, Wolfgang (NP) wo||g@ng@v|echtb@uer @end|ng |rom m@@@tr|chtun|ver@|ty@n|
Tue Apr 25 13:39:14 CEST 2023


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-bounces using r-project.org] On Behalf Of
>Göran Broström
>Sent: Tuesday, 25 April, 2023 12:02
>To: Ivan Krylov
>Cc: R-package-devel using 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 <gb using 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


More information about the R-package-devel mailing list