Knitr/Markdown OpenCPU App

August 30, 2013

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

opencpu logo

A new little OpenCPU app allows you to knit and markdown in the browser. It has a fancy pants code editor which automatically updates the output after 3 seconds of inactivity. It uses the Ace web editor with mode-r.js (thanks to RStudio for making the latter available).

Like all OpenCPU apps, the source package lives in the opencpu app repo on github. You can try it out on the public cloud server, or run it locally:

#install the package
install_github("markdownapp", "opencpu")

#open it in opencpu

The app uses the knitr R package and a some standard javascript libraries. What remains is a few lines of javascript to call OpenCPU when the editor is inactive. The entire app was created in about an hour. Feel free to fork and modify :-)

To leave a comment for the author, please follow the link and comment on his blog: OpenCPU. offers daily e-mail updates about R news and tutorials on topics such as: 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.