I've installed TinyTeX and am now trying to knit the generic "Untitled.Rmd" file to PDF,
> install.packages("tinytex")
> tinytex::install_tinytex()
> options(tinytex.verbose = TRUE)
> rmarkdown::render("Untitled.Rmd", output_format = "pdf_document")
which returns this error message:
tlmgr search --file --global "/grffile.sty"
! LaTeX Error: File `grffile.sty' not found.
! Emergency stop.
<read *>
Error: Failed to compile Untitled.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See Untitled.log for more info.
In addition: Warning message:
In parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)) :
Failed to find a package that contains grffile.sty
I've tried installing the package but that didn't seem to help.
> tinytex::tlmgr_install("grffile")
Has anyone else had this issue? I've so far been able to reproduce this error on both Windows and MacOS, when a second LaTeX distribution is not present.