AAGI-AUS / AAGITemplates

Rmarkdown, LaTeX, and Knitr reporting templates for AAGI staff.
MIT License
5 stars 4 forks source link

Can't knit HTML presentation #14

Closed adamhsparks closed 2 months ago

adamhsparks commented 2 months ago

After creating a new RMarkdown file to generate a xaringan presentation from RStudio File -> New -> From Template -> HTML Presentation {AAGITemplates}, I'm unable to knit the presentation.

File assets/mathjax-eq-num.html not found in resource path
Error: pandoc document conversion failed with error 99
Execution halted

Am I missing something in the execution?

I note that the "Presentation Ninja" (default template provided by {xaringan} for English knits.

RussellAndrewEdson commented 2 months ago

Yep confirmed, I've got the same behaviour on a virtual machine on my end (barebones RHEL9, with only tidyverse + TexLive installed before installing the AAGITemplates package and trying to immediately knit the new xaringan document): image

I'll investigate.

RussellAndrewEdson commented 2 months ago

Fixed, it was a line about ignoring .html files in the .Rbuildignore that caused the grief. That mathjax file never gets copied over to the package during the install, and thence never ends up in the assets folder for a new presentation.

I've taken the line out and it solves the issue (@rogerssam we should probably check that this fix hasn't resulted in unwanted html files being copied over though. It doesn't look like it has.)