afrologicinsect
afrologicinsect

Reputation: 171

Error: installing tinytex (tinytex::install_tinytex()) in rstudio

I am trying to knit reports to pdf documents in rstudio.

I have successfully installed rtools and added it to my PATH, and also installed rmarkdown and tinytex. However whenever I run tinytex::install_tinytex() the following error about tlmgr is thrown.

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

xfun::session_info('tinytex')

R version 4.1.0 (2021-05-18) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19042), RStudio 1.4.1717

Package version: graphics_4.1.0 grDevices_4.1.0 stats_4.1.0
tinytex_0.32 tools_4.1.0 utils_4.1.0 xfun_0.23

I have installed tinytex with mush more relative ease in the past and have now tried this a gazillion times without any joy. Please any help will appreciated on this or at least a great guide on how to render tables in word(.docx) outputs.

Upvotes: 2

Views: 3009

Answers (1)

afrologicinsect
afrologicinsect

Reputation: 171

I don't really know how I did this but let me just mention the obvious steps for anyone who meets such errors in the future.

I deleted everything, R and RStudio folders and emptied all folders from the recycle bin.

  1. Reinstalled R
  2. Reinstalled RStudio
  3. Installed rmarkdown
  4. Then tinytex::install_tinytex()

See the thing is I had done this a thousand times and I don't really know why this works now, but hey it's a free and new program, R.

And I will keep this open incase of any serious explanations and thanks for those that at least tried to help.

Upvotes: 1

Related Questions