Hello Everyone,
I encounter issue when compile Rmd file to PDF file in Rstudio on MacOS 12. I have installed R 4.2.1, latest Rstudio, MacTeX and TexLive 2022 (via macport). From configuration of TexStuio app, it seems TexLive 2022 is now in use.
The problem is Rstudio will stuck at final step of making knit.md output. I here copy the command from Rstudio log window:
/Applications/RStudio.app/Contents/MacOS/quarto/bin/tools/pandoc +RTS -K512m -RTS test1.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output test1.tex --lua-filter /Library/Frameworks/R.framework/Versions/4.2/Resources/library/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /Library/Frameworks/R.framework/Versions/4.2/Resources/library/rmarkdown/rmarkdown/lua/latex-div.lua --embed-resources --standalone --highlight-style tango --pdf-engine pdflatex --variable graphics --variable 'geometry:margin=1in'
There is no error or warning message but just hanging there for long time. I tried to run above statement in terminal and it gave me same symptom.
The test file is quite simple as below:
---
title: "Test File"
output: pdf_document
date: "2022-10-05"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Introduction
Here 1
By the way, I can successfully compile TeX file generated by Rstudio in TexStudio. But when I tried to use pdflatex or latex to compile it in terminal, I got error telling me lmodern.sty is missing. This happened also in previous MacOS 10.15, and I remembered there are many sty files missing and I downloaded them manually to put together with above generated tex file and finally I could successfully compile it in terminal.
So I am not sure if that is the issue of Rstudio, or knit, or Texlive 2022 in Macport. I do want to use my installed MacTex, but texlive2022-basic was installed together with gr-osmosdr
Please provide me your suggestions and thoughts. Thank you so much in advance.