So far I haven´t had any problems kniting to pdf. However, now I´m getting this message.
A new version of TeX Live has been released. If you need to install or update any LaTeX packages, you have to upgrade TinyTeX with tinytex::reinstall_tinytex(). If it fails to upgrade, you might be using a default random CTAN mirror that has not been fully synced to the main CTAN repository, and you need to wait for a few more days or use a CTAN mirror that is known to be up-to-date (see the "repository" argument on the help page ?tinytex::install_tinytex()).
! LaTeX Error: Not in outer par mode.
The thing is, I have MikTex installed, which I suppose is what Rmarkdown has been using so far, and I don´t want to install another software.
Anyhow, I decided to give TinyTex a try, as after updating everything, I kept getting the same error. So I did:
tinytex::reinstall_tinytex()
But I got this message:
Error in system2("tlmgr", args, ...) : '"tlmgr"' not found
Any idea on how to fix this? Preferably if it´s using MikTex.
I decided to uninstall MikTex and use it only for TexStudio in other machine. But after installing tinytex with tinytex::install_tinytex() I get:
! LaTeX Error: Not in outer par mode.
Error: LaTeX failed to compile CCA_multimodal.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See CCA_multimodal.log for more info.
Can this be related with the code, like something inside kableExtra package?
This is an error from your document. Something inside your R Markdown document is creating a wrong tex syntax causing this error. This is another issue.
You need to provide an example or at least part of the content you are rendering. I would suggest opening a new issue for this.
In order to check TinyTeX is working for you try building the template Rmd file to PDF.