Knitr/Markdown OpenCPU App

[This article was first published on OpenCPU, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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:

<span class="c1">#install the package</span>
library<span class="p">(</span>devtools<span class="p">)</span>
install_github<span class="p">(</span><span class="s">"markdownapp"</span><span class="p">,</span> <span class="s">"opencpu"</span><span class="p">)</span>

<span class="c1">#open it in opencpu</span>
library<span class="p">(</span>opencpu<span class="p">)</span>
opencpu<span class="o">$</span>browse<span class="p">(</span><span class="s">"/library/markdownapp/www"</span><span class="p">)</span>

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 their blog: OpenCPU. offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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)