0

I'm trying to knit an RMarkdown to a pdf but the code just doesn't compile. I'm on a Windows operating system.

This is the error message I get at the end:

! LaTeX Error: File `caption.sty' not found.

I've tried debugging by going through other posts on StackExchange like this one.

I can't seem to get it to work. I don't even know what a .sty extension really means, and I'm actually terrible with the Windows operating system, despite for having to use it here. I am not bad with the RStudio console, though. Is there anything I can do from within the RStudio environment to make this work? I've tried tinytex::install_tinytex() or tinytex::reinstall_tinytex() with no luck.

hachiko
  • 671
  • 7
  • 20
  • 1
    Have you tried to add the caption Package manually in the yaml header? (‘Header-includes’) see example [here](https://stackoverflow.com/questions/73848730/kable-and-kableextra-not-rendering-in-pdf-from-markdown-document/74016913#74016913) – Julian Oct 27 '22 at 15:42

0 Answers0