MangoTheCat / rmdshower

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

Knitting with a custom theme #45

Closed juliasilge closed 6 years ago

juliasilge commented 6 years ago

Hello! Thank you so much for this beautiful presentation option; I love using it.

We have built an internal package at Stack Overflow with our styling, fonts, etc in much the same way that Mango has a theme package. To get our R Markdown files to knit, I had to add our package to the package.json on a fork of rmdshower and install that fork to my local machine. Without that, rmdshower does not know about my theme package and fails to knit.

What is going on here? Is this as intended? Should I submit a PR with our internal theme package listed?

dougmet commented 6 years ago

The GitHub version of the package can have extensions. See the mangothecat/rmdshower.mango repo for an example. It can be a bit of a pain building all the node packages but it should be extendable for a SO theme without having to change rmdshower itself.

Must get around to releasing to cran.

dougmet commented 6 years ago

Just re-read this and you already knew about the theme package. The package needs to be called rmdshower.<themename> and it must be GitHub version of rmdshower.

juliasilge commented 6 years ago

Ah, I had only tried it with CRAN rmdshower; that did the trick. Thanks!