GithubHelp home page GithubHelp logo

Comments (12)

juba avatar juba commented on May 20, 2024 1

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.

juba avatar juba commented on May 20, 2024 1

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.

juba avatar juba commented on May 20, 2024 1

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.

RCura avatar RCura commented on May 20, 2024 1

Yes, working perfectly now, a big thanks ;)

from rmdformats.

RCura avatar RCura commented on May 20, 2024

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
> ```

Displays :
capture du 2016-08-29 15-21-54

from rmdformats.

juba avatar juba commented on May 20, 2024

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.

RCura avatar RCura commented on May 20, 2024

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.

RCura avatar RCura commented on May 20, 2024

(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.

juba avatar juba commented on May 20, 2024

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.

juba avatar juba commented on May 20, 2024

Ah, and what version of rmarkdown do you use ?

from rmdformats.

RCura avatar RCura commented on May 20, 2024

https://gist.github.com/RCura/3004f82f16d5fa3357624167185ab5ca

Rmarkdown : v1.0

from rmdformats.

juba avatar juba commented on May 20, 2024

Thanks to you for your time and your feedback !

from rmdformats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.