Comments (12)
You're right, that would definitely be useful. I'm a bit busy these days, but I think I could take a look at it next week.
Thanks for the suggestion.
from rmdformats.
This took far too long, but the all HTML templates should now support both code folding and tabsets in the same way RStudio's HTML template does.
Thanks for the suggestion, and sorry for the delay...
from rmdformats.
Ok, it seems rmarkdown doesn't include jQuery in your file, so I added back the explicit dependency declaration in e551158. Does it solve the problem ?
from rmdformats.
Yes, working perfectly now, a big thanks ;)
from rmdformats.
Thanks for this enhancement :)
Just tried though, with code_folding: hide
: I can see the Code
button, but clicking on it does nothing.
> ---
> title: ""
> date: "`r Sys.Date()`"
> output:
> rmdformats::readthedown:
> highlight: kate
> code_folding: hide
> ---
>
>
> ```{r knitr_init, echo=FALSE, cache=FALSE}
> library(knitr)
> library(rmdformats)
>
> ## Global options
> options(max.print="75")
> opts_chunk$set(echo=FALSE,
> cache=TRUE,
> prompt=FALSE,
> tidy=TRUE,
> comment=NA,
> message=FALSE,
> warning=FALSE)
> opts_knit$set(width=75)
> ```
>
> Test 123
>
> ```{r blob}
> 1 + 1
> ```
from rmdformats.
I think it' because there's the global echo = FALSE
option, so R code is not generated at all. If you switch it to TRUE
in the knitr_init
chunk, does it work ?
from rmdformats.
Same problem I had in my real document : each code button appears (not only the general one with a down arrow), but clicking on these still does nothing.
from rmdformats.
(Note that I tried this with opening the resulting html in a browser (Chromium & Firefox), but also using an http-server to make sure it's not a "static" problem.)
from rmdformats.
An do you get the Bootstrap's JavaScript requires JQuery
error each time ? Could you copy/paste somewhere the resulting HTML file from your first minimal example ?
from rmdformats.
Ah, and what version of rmarkdown
do you use ?
from rmdformats.
https://gist.github.com/RCura/3004f82f16d5fa3357624167185ab5ca
Rmarkdown : v1.0
from rmdformats.
Thanks to you for your time and your feedback !
from rmdformats.
Related Issues (20)
- Tibble not Rendering when using downcute_chaos theme. HOT 4
- readthedown theme : table of content hightlight HOT 5
- How can I modify the bottom code to display more levels of headers?
- Release to CRAN HOT 3
- company/university name for title HOT 5
- Add header page splits to robobook? HOT 1
- Disabling theme switcher in downcute HOT 2
- Clicking on TOC items hides the headings if navbar is enabled HOT 3
- Is it possible to add a small blank box when class.source = 'fold-hide' is called in html_clean to show where code blocks are present? HOT 3
- how to change the default color HOT 2
- Floating TOC scrolling over logo HOT 6
- document width
- Using lightbox for images within a DT datatable HOT 4
- page-resizing HOT 2
- Utilization of {data-navmenu=""} Menus with material template HOT 2
- Utilizing templates for quarto HOT 2
- Images are rendered small using Material theme HOT 2
- Template readthedown rmdformats title duplicate HOT 2
- Change font style (size, color, family) using downcute template HOT 1
- downcute: integration of shiny HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmdformats.