So, there are a few questions on SO but none that seem to have solved this particular issue.
I am looking to customise my RMarkdown/Slidy presentation, created from RStudio, with a custom CSS template.
- RStudio already allows minimal customisation using the built-in Bootswatch themes, accessible thus
output: slidy presentation / theme: readable
- There are other Bootswatch themes that are not built-in; specifically I might want to use
Cyborg
orSlate
, which have a nice dark background (instead of white)
The following is an intuitive solution for overriding the Slidy CSS with a custom file:
```{css}
<link href="bootstrap-slate.css" rel="stylesheet">
```
However, it fails with:
pandoc.exe: Could not fetch .\../fonts/glyphicons-halflings-regular.eot
.\../fonts/glyphicons-halflings-regular.eot: 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 segmentations.utf8.md --to slidy --from
markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --
output segmentations.html --smart --email-obfuscation none --self-contained --template "C:\Users\ME\Documents\R\R-3.3.3\library\rmarkdown\rmd\slidy\default.html" --include-in-header
"C:\Users\ME\AppData\Local\Temp\RtmpGYLCFf\rmarkdown-str378022cf50b0.html" --mathjax --variable "mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --highlight-style pygments' had status 67
Execution halted
Any suggestions would be welcome. Note that the solution in the documentation rMarkdown documentation does not work. Solution there copied here for reference:
---
output:
slidy_presentation:
css: styles.css ##
---
Error in yaml::yaml.load(string, ...) :
Scanner error: mapping values are not allowed in this context at line 5, column 21
Calls: <Anonymous> ... parse_yaml_front_matter -> yaml_load_utf8 -> <Anonymous> -> .Call
Execution halted