Rafael
Rafael

Reputation: 3196

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?

Upvotes: 3

Views: 8055

Answers (3)

leon Jing
leon Jing

Reputation: 1

tinytex:::install_prebuilt() works for me too! Thanks to Tamas Nagy, I cannot comment now.

here is my console:

> tinytex::reinstall_tinytex()
Error in system2("tlmgr", args, ...) : '"tlmgr"' not found
> tinytex:::install_prebuilt()
trying URL 'https://yihui.org/tinytex/TinyTeX.zip'
Content type 'application/octet-stream' length 272460352 bytes (259.8 MB)
downloaded 259.8 MB

3 File(s) copied
1 File(s) copied
Running fc-cache -v -r

Upvotes: 0

Tamas Nagy
Tamas Nagy

Reputation: 1051

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

Upvotes: 1

SKimatian
SKimatian

Reputation: 51

I would try running:

tinytex:: install_tinytex()

then try running:

update.packages(ask = FALSE, checkBuilt = TRUE)
tinytex::tlmgr_update()

Upvotes: 5

Related Questions