Knitr/Markdown OpenCPU App

August 30, 2013

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 :-)