Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I avoid jQuery and bootstrap in html pages rendered by rmarkdown?

I want to produce a simple html page where I want the jquery 1.11.0 and bootstrap library are loaded from a specific CDN in remote. But I don't know how can I modify the configurations in the beginning of a RMarkdown document to remove jQuery and bootstrap.

From http://rmarkdown.rstudio.com/html_document_format.html I create my own header html file which includes all the css and js references.

title: "document"
output:
  html_document:
    mathjax: null
    highlight: null
    self_contained: false
    includes:
      in_header: header.html

I disable mathjax and highlight.js but cannot disable jQuery and bootstrap and use my own without loading two versions of them.

How can I disable jQuery and bootstrap so that I can use them in my may spefified in header.html?

like image 752
Kun Ren Avatar asked Oct 22 '25 17:10

Kun Ren


1 Answers

I just notices in the documentation: http://rmarkdown.rstudio.com/html_document_format.html

You also need to set

theme: null

like image 113
jpmarindiaz Avatar answered Oct 24 '25 09:10

jpmarindiaz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!