I work with texlive and R, but when I compile the .tex file I received this error
File `Sweave.sty' not found. \begin
and I found this answer but its for miktex users and I have texlive
I work with texlive and R, but when I compile the .tex file I received this error
File `Sweave.sty' not found. \begin
and I found this answer but its for miktex users and I have texlive
the solution for me is that I put this code in R
library("tinytex")
r_texmf(action = "add")
and then I compile my .tex document and it works
Sweave.styfrom your R installation and copy it to the same folder as your project. – daleif May 17 '22 at 11:37