[ESS] Difficulty pointing to .css file for markdown html rendering

Lionel Henry ||one|@hry @end|ng |rom gm@||@com
Tue Nov 17 18:16:29 CET 2015


I think the YAML header is handled by the rmarkdown package, not by knitr.
So maybe try with rmarkdown::render().


> On 17 nov. 2015, at 17:26, Brian Hobbs <rebdh using channing.harvard.edu> wrote:
> Hello all,
> I am currently using ESS with polymode to edit .Rmd files, which I render
> into .html files using knitr and the knit2html('file.Rmd') command in R.
> I am having difficulty pointing to a custom.css file using the YAML header
> in my .Rmd file. This is my current .Rmd YAML header:
> ---
> title: "title"
> author: author
> output:
>  html_document:
>    css: custom.css
> ---
> When I use this header, the default .css file (and thus default html
> rendering options) are still used.
> As most of the online help with custom.css files are centered on assumption
> that rstudio is being used, I wanted to see if anyone here has had success
> with using custom.css files for html rendering through knitr while using
> ESS.
> Thanks,
> Brian
> 	[[alternative HTML version deleted]]
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

More information about the ESS-help mailing list