-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple document format #68
base: master
Are you sure you want to change the base?
Conversation
Thanks!! Once that's done will it upgrade cleanly to Bootstrap 3.2.0? |
If I want to test this, can I just do |
Yes you can do either # to install from the rmarkdown_template branch
devtools::install_github('jimhester/knitrBootstrap', ref = 'rmarkdown_template')
# or
devtools::install_github('jimhester/knitrBootstrap@rmarkdown_template')
# To install directly from this pull request
devtools::install_github('jimhester/knitrBootstrap#68') Let me know if you have issues, or if you miss features I took out. I can add some back if they are things people liked. The easiest way to get started is to use the rmarkdown templates in Rstudio. |
OK - I'll be testing it tonight!! Do you have your own rmarkdown templates? I've been using the "Mosaic Fancy" template from https://github.com/rpruim/mosaic as a template and it works great once I figured out the MathJax code for in-line math. |
I did a "new file" from the "knitrBootstrap" template in RStudio. That creates a directory with an Rmd file and a js and css folder. Doing a "knit" in RStudio gives an error -
So does running "rmarkdown::render" in the console:
|
It looks like there aren't any vignettes now - at least only 'DESCRIPTION' and 'NEWS' are showing in the help panel. The install appears to have worked.
|
Here's what's in the library after the install:
|
Sorry you ran into difficulties, I split a few functions into their own file but neglected to add it to the repository. If you reinstall the latest version from the branch it should now work. |
Yep - working now! Notes:
I don't know if I've posted this before, but the target for all of this activity is my new blog, znmeb.bitbucket.org. That's built with Nikola and I can either post HTML out of knitrBootstrap or raw Markdown there. Actually I can post anything Pandoc can handle; Nikola has the option to call out to Pandoc as a compiler. Nikola's "native" language is Restructured Text, which is big amongst the Pythonistas. |
@znmeb Mathjax should be working now. As far as the toggles go there is no way to get rid of them completely. You may want to try using I could also make a version which does not have a toggle at all and only has a thin panel outline based on the code type if that is what you are looking for. |
I'm going for "mobile first" here - the toggles (and the old navbar and theme magic) work on a mobile small screen but they distract from the content. If you've got a recent version of Firefox handy, go into the 'Developer' menu, select 'Responsive Design View' and look at a rendered page with resolution 320x480. Bootstrap 3 itself works that way, although I've had some issues with a few of the themes. I ended up with 'Cosmo' on http://znmeb.bitbucket.org/stories/mosaic-fancy-test-document.html because of the theme issues. |
Incidentally, the workflow for that test page used RStudio |
Hi, I just noticed all of these changes. Is there somewhere I should look for some minor docs? Or should I wait a bit longer before testing? I am hoping that it won't be too hard to switch to this version from the previous github one as I'm using
I'm using a makefile for creating the vignettes and specifying the appropriate call depending on the Thank you again for making |
I've updated my workflow for http://znmeb.bitbucket.org; see http://znmeb.bitbucket.org/stories/blogging-with-rstudio-and-nikola.html for the details. I'm generating un-themed HTML using the standard RStudio knitr-pandoc chain. I then pass the un-themed HTML to Nikola for theming and the rest of the site building. I'll be migrating to knitrBootstrap once the next release is out and turning off most of the Nikola theming for RStudio-authored documents. |
@lcolladotor Please try out the new version, I would like as much user input as possible before switching. If you miss something let me know and I can add it. I am also thinking of making the simple format the default one, so I feedback on how everyone likes that would be great. In terms of creating vignettes with the new version it should be easier than previously, you can just use the following YAML header. I will make a template with this header in it, so it will be very easy to do in the future.
|
Align chunks with text
Support Rmarkdown's tabbed navigation
This allows referencing a chunk with label `chunkLabel` in the text with something like [this code](#chunkLabel).
Just an FYI to anyone watching this thread the newest version of Rmarkdown has support for code folding (http://blog.rstudio.org/2016/03/21/rmarkdown-v0-9-5/) which was one of the few remaining features knitrBootstrap had that regular rmarkdown did not. |
Thanks for the note @jimhester. It looks very promising. I'm guessing that you were involved in this now that you are at RStudio. Cheers, |
With rmarkdown v0.9.5 released today and described at http://blog.rstudio.org/2016/03/21/rmarkdown-v0-9-5/ it doesn't look like knitrBootstrap adds much anymore as commented by Jim Hester himself at jimhester/knitrBootstrap#68 (comment) With this in mind, I'm switching the default to rmarkdown instead of using knitrBootstrap. Specially because the version of knitrBootstrap I like to use is only available via GitHub and will probably never make it to CRAN. It might even make sense to completely drop the knitrBootstrap dependency, although I'll leave it for now since there is no immediate need to drop it. I'm also testing using the DT package for the datatables features instead of the JS code that was included before. This might not work on this commit but I'll get it to work soon anyway.
Tag chunks
I had a lot of unread notifications from Anyhow, I don't know if you plan on pushing this branch to |
* Place 'include after' block after body * Add scrollbar to long TOC * Replace deprecated '--no-wrap' option * Allow wrapping option to be set in yaml header
With rmarkdown v0.9.5 released today and described at http://blog.rstudio.org/2016/03/21/rmarkdown-v0-9-5/ it doesn't look like knitrBootstrap adds much anymore as commented by Jim Hester himself at jimhester/knitrBootstrap#68 (comment) With this in mind, I'm switching the default to rmarkdown instead of using knitrBootstrap. Specially because the version of knitrBootstrap I like to use is only available via GitHub and will probably never make it to CRAN. It might even make sense to completely drop the knitrBootstrap dependency, although I'll leave it for now since there is no immediate need to drop it. I'm also testing using the DT package for the datatables features instead of the JS code that was included before. This might not work on this commit but I'll get it to work soon anyway. git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/regionReport@115061 bc3139a8-67e5-0310-9ffc-ced21a209358
This is a major restructuring of the package embracing
rmarkdown
fully. It has two main features,html_document()
It aims to do as little work in javascript as possible, namely no DOM restructuring (other than highlighting).