A new blogging workflow

November 23, 2015
By

(This article was first published on Adventures in Data, and kindly contributed to R-bloggers)

Just disovered the Jekyllgithub pages combination. Perfect for a very simple static blog site. I also found a pretty neat integration with RMarkdown which suits me perfectly, as I am mainly using R and will be posting bits and pieces of that.

A summary of how it works…

  • Install Jekyll on a local directory and build the site on your disk.
  • Create a repo for your github pages site, push the Jekyll directory.
  • Done

I'm not going to explain these steps in any detail as they are very well explained in the links above, however if you are an R fanatic like me, it's worth noting the integration with RStudio / RMarkdown. First go install a package called servr.

install.packages("servr")

Thanks for writing and maintainging this Yihui Xie.

The package include a function jekyll(). First create a directory in your Jekyll route directory called _source. Put your .Rmd blog scripts in here and then call the jekyll() function from R with setwd() pointed at your Jekyll route directory. This will compile the script, including any output. The resulting .md files go into the _posts directory and any figures go into figure. Then git commit and git push and your blog is posted.

It really is that easy, now time for my first post…

To leave a comment for the author, please follow the link and comment on their blog: Adventures in Data.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)