MangoTheCat / rmdshower

R Markdown template for shower
http://mangothecat.github.io/rmdshower/skeleton.html
Other
147 stars 42 forks source link

Standalone option fails to knit #44

Open imanuelcostigan opened 6 years ago

imanuelcostigan commented 6 years ago

Here's the output block in my yaml header:

output: 
  rmdshower::shower_presentation:
    self_contained: true
    theme: "material"
    incremental: true
    katex: true
    ratio: "4x3"

This returns the following error when knitting:

pandoc.exe: Could not fetch slides_files/rmdshower/package/styles/screen-4x3.css
slides_files/rmdshower/package/styles/screen-4x3.css: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 67
In addition: Warning message:
running command '"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS slides.utf8.md --to revealjs --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output slides.html --smart --email-obfuscation none --self-contained --template "C:\RLibrary\rmdshower\rmarkdown\templates\shower\resources\default.html" --incremental --slide-level 2 "--variable=ratio:4x3" "--variable=katex:yes" --mathjax --variable "mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" "--variable=shower-url:slides_files\rmdshower" "--variable=theme:material" "--variable=shower-theme-url:slides_files/rmdshower" --highlight-style pygments' had status 67 
Execution halted
vfulco commented 6 years ago

To piggyback, on Ubuntu 17.10, this:

output: rmdshower::shower_presentation: self_contained: true katex: false theme: ribbon ratio: 16x10

this error-

output file: test_deck.knit.md

pandoc: Could not fetch /home/foouser/R/x86_64-pc-linux-gnu-library/3.4/rmdshower/package/styles/screen-16x10.css /home/foouser/R/x86_64-pc-linux-gnu-library/3.4/rmdshower/package/styles/screen-16x10.css: openBinaryFile: does not exist (No such file or directory) Error: pandoc document conversion failed with error 67 Execution halted

dougmet commented 6 years ago

Been struggling with file paths not updating for a while. Thanks for the error messages

vfulco commented 6 years ago

Thanks for the quick response. Hate to be complaining with no solution. Is there a dockerized version/dockerfile floating around? That's what I usually use when I am having pandoc or latex oriented issues. TIA

dougmet commented 6 years ago

I don't think it's a pandoc issue, more that some css files are not being installed into the expected location. I'm looking into it.

dougmet commented 6 years ago

This is working for me now on master branch. Let me know how you get on.