On Thu, Jan 16, 2025 at 10:27:47PM +0000, Thomas Philips wrote:
> Dear all,
> I have just installed LyX 2.4.3 alongside LyX 2.3.8 on my Windows 11 PC with 
> R 4.4.2. LyX 2.3.8 works perfectly, but Documents > Settings > Modules on 
> 2.4.3 tells me that I am missing knitr. The selected modules are:
> AMS Theorems
> Rnw(knitr) (missing req.)
> Subequations
> 
> I have gone back to RStudio and reinstalled knitr, but the message concerning 
> the missing knitr module doesn't go away. What do I need to do get LyX 2.4.3 
> to see knitr and create pdfs just as 2.3.8 reliably does?
> 
> My colleague installed LyX 2.4.3 on her Macbook (she does not have 2.3.8) and 
> it works just fine for her. Is this a Windows issue, a TeX Live issue (I have 
> installed the complete Tex Live distribution) or something more subtle?
> 
> Sincerely and with many thanks in advance
> 
> Thomas Philips

Hi Thomas,

One idea is to try to install knitr in vanilla R. The reason behind this 
suggestion: I wonder if RStudio is installing and loading packages into a 
directory that vanilla R doesn't know about.

To install on vanilla R, open R (not RStudio) and enter the following:

  install.packages("knitr")

Best,
Scott

Attachment: signature.asc
Description: PGP signature

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to