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
knitpress #205
Comments
this is pretty much how it looks like: http://jfisher-usgs.github.com/r/2012/07/03/knitr-jekyll/ |
In the 5th ChinaR conference (shanghai), I gave a demo how to use knitr and jekyll to post articles automatic. But the demo is very dirty. Maybe in the future, knitpress will come ture. |
I'm working on it these days. Hopefully it will come soon. |
I have a working prototype for generating web pages using only R. See http://www.slidify.org. It was generated from R Markdown files and mustache templates. You can generate the HTML pages using I am working on converting it into a full-fledged blogging package, by adding the necessary glue to manage posts. Compilation will use |
The "knitpress" idea is great, thank you all for pursuing this line of work! Like yanping, I stitched together R markdown and Jekyll (to create an R demo website, see this example), and the workflow is not really smooth: Jekyll expects to have a YAML front matter, and I do not know how this meta-data could be embedded in an Rmd document, such that it survives knitr and is formatted correctly for Jekyll in the resulting md file. So I have to run a script to add those front matters in post-processing. Jekyll also expects a certain file name pattern that may fit blog posts, but not more complex structured sites. So the script also has to change file names. Jekyll's liquid template engine uses However, liquid is nice because it allows to represent a more complex site structure than a blog with categories and sub-categories. One can build side-bar navigation and breadcrumbs. ramnathv's slidify looks really impressive, but I am not sure if it supports such a hierarchical site structure. |
@dwoll. That set of pages look awesome both the content and the design. It's a great template to design tutorial sites! I am extending Slidify to support blogs and web pages. The slidify web page http://www.slidify.org has been built using slidify. I have worked out page generation (as it is identical to what slidify does, just different templates). The time consuming part is figuring out the metadata in the payload so that tag lists and category lists can be generated. Moreover, I am using |
@ramnathv that sounds awesome; I'm looking forward to it. |
@yihui @dwoll @yanping I give you poirot, a blog aware, static website generator for reproducible content. Here is a sample blog generated using |
I am trying to set up an emacs-based environment where I can write my original source in org-mode, and from there be able to generate a blog or page containing math, code snippets and R plots. Ideally I'd like to generate a page that looks like this: http://blog.aggregateknowledge.com/ or this: http://blog.echen.me/2012/03/20/infinite-mixture-models-with-nonparametric-bayes-and-the-dirichlet-process/ I am trying to use knitr and MathJax and jekyll/octopress... I have it more or less working but there are a few wrinkles with markdown trying to interpret math inside |
@pchalasani Poirot is still an experiment. You can see a sample blog up and running at http://ramnathv.github.com/poirotBlog/. Octopress themes are notoriously complicated to adapt, but any of the Jekyll themes can be adapted easily. Right now I have adapted two other themes for Poirot (Dinky and Left). If you are interested in testing Poirot out, send me a message, as the documentation is still thin. |
@pchalasani to preserve |
@ramnathv can poirot do math nicely as in those 2 blog posts I linked to? @yihui kramdown needs |
@ramnath those themes Dinky and Left look really nice, and I like the Brownian motion page -- and it does look like it supports latex-math as well. |
@pchalasani Poirot uses the |
@pchalasani that is not true: you can use |
Just a data point, I blog using octopress + knitr, but I just use a template with an include in octo and then link to the output in an RStudio project with output set to html_fragment. It's a little manual but not much at all. The only thing I don't like is that images are embedded in the html which makes hard to link to them, but that way it's one include and it's done. |
I closed this issue since I'm no longer interested in a separate knitpress package. Instead, I spent a couple of days working on serving Jekyll websites with R. For those who are interested, you may check out https://github.com/yihui/knitr-jekyll It is still experimental but should work reasonably well. |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
there are wordpress, octpress, ... and we can probably come up with a knitpress for R bloggers based on Jekyll -- it will only be a simple template providing wrappers to knit blog posts; not really a comprehensive blogging engine
we should also consider #93 and think about integrating github wiki with knitr
also see https://www.gitbook.io/
The text was updated successfully, but these errors were encountered: