I've tried searching on google to fix this, with very minimal helpful solutions.
I have installed, Miktex, R and R studio. I would like to use Sweave to create PDF documents in Miktex. Everytime I open my .Rnw file, it gives a warning at the top which reads "No TeX installation detected. Please install TeX before compiling"
When I look for pdflatex on my system with the command
Sys.which("pdflatex")
it returns ""
Does anyone know how to fix this? ANYTHING at all at this point would be useful.