0
I started using Rstudio on Windows 10 recently. I tried the basic operation to save a PDF from R Markdown, however, when generating R Markdown, the file does not appear as . rmd, even having renamed the file. I try to save as PDF, but when I call Knit, it opens the directory with the option to save "all files" and not as PDF (even though I have already selected the PDF option). Although the file is saved this way (all files), the PDF window that should open in Rstudio does not appear.
What is going wrong?
I already installed the rmarkdown, tinytex and latexpdf packages, but it shows the following error:
Erro: LaTeX failed to compile Relatório.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips.
Além disso: Warning messages:
1: In has_crop_tools() :
Tool(s) not installed or not in PATH: pdfcrop, ghostcript
-> As a result, figure cropping will be disabled.
2: In system2(..., stdout = if (use_file_stdout()) f1 else FALSE, stderr = f2) :
'"pdflatex"' not found
Execução interrompida
No LaTeX installation detected (LaTeX is required to create PDF output). You should install a LaTeX distribution for your platform: https://www.latex-project.org/get/
If you are not sure, you may install TinyTeX in R: tinytex::install_tinytex()
Dear Alexandre, thank you so much for the information! Following your guidelines, I managed to solve the problem with the installation of Texlive. I tried with Miktex, however, both the complete and basic installation did not work on my Windows 10.
– Juliana