Hello Scott,
I tried your suggestion and installed knitr using RGui, but to no avail - LyX 
2.4.3 still cannot find knitr. Thank you for your direct reply to me, as I 
don't see my question posted on lyx-users. Is there a delay before questions 
are posted? It would be of interest to see if my problem is an isolated one, or 
if others have experienced it and resolved it in some way.

Sincerely,

Tom



________________________________
From: Scott Kostyshak
Sent: Friday, January 17, 2025 2:21 AM
To: Thomas Philips
Cc: [email protected]; Tianqi Wang; 'Stoyan Stoyanov'
Subject: Re: Trouble with knitr in LyX 2.4.3

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
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to