Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

debugging rmarkdown error 'tlmgr' not found

I'm trying to knit to PDF using an .rmd file. It failed and suggested I look:

https://yihui.org/tinytex/r/#debugging for debugging tips.

The second step is to run tinytex::tlmgr_update(), however this returns:

tlmgr update --all --self

Error in system2("tlmgr", args, ...) : '"tlmgr"' not found

How should I proceed?

like image 930
Rafael Avatar asked Jun 11 '26 15:06

Rafael


2 Answers

I would try running:

tinytex:: install_tinytex()

then try running:

update.packages(ask = FALSE, checkBuilt = TRUE)
tinytex::tlmgr_update()
like image 64
SKimatian Avatar answered Jun 13 '26 06:06

SKimatian


Try tinytex:::install_prebuilt(). I found this solution that worked for me at https://community.rstudio.com/t/cannot-install-tinytex/129302

like image 23
Tamas Nagy Avatar answered Jun 13 '26 05:06

Tamas Nagy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!