I want to use latex in Rstudio, for this I installed some time ago the Miktex but I installed it in the D disk, so when running in Rstudio this did not catch it, then I uninstalled it and installed the tinytex(https://yihui.org/tinytex/) and it did not run with all the packages that I wanted to use. After a while I tried again and installed again the Miktex but now on disk C, but now I get the path error.
Recently I saw a publication (How can I set the latex path for sweave in R?)of solution of the error but I don't understand the steps very well since they ask me to create a Renviron.site in the R folder but it doesn't let me, besides I don't know what I should add to that file. If someone knows how to configure it or how to follow the steps of the publication it would help me a lot please.