You are currently browsing the monthly archive for May 2012.

We’ve just a made a change to the syntax for embedding MathJax equations in R Markdown documents. The change was made to eliminate some parsing ambiguities and to support future extensibility to additional formats.

The revised syntax adds a “latex” qualifier to the $ or $$ equation begin delimiter. It looks like this:

This change was the result of a few considerations:

  1. Some users encountered situations where the $<equation>$ syntax recognized standard text as an equation. There was an escape sequence (\$) to avoid this but for users not explicitly aware of MathJax semantics this was too hard to discover.
  2. The requirement to have no space between equation delimiters ($) and the equation body (intended to reduce parsing ambiguity) was also confusing for users.
  3. We want to eventually support ASCIIMath and for this will require an additional qualifier to indicate the equation format.

RStudio v0.96.227 implements the new MathJax syntax and is available for download now.

There’s been lots of excitement about the new R Markdown feature introduced as part of knitr 0.5 and RStudio 0.96. People see R Markdown as both a simpler way to do reproducible research and as a great way to publish to the web from R. Jeromy Anglim has a nice write up on getting started with R Markdown and Marcus Gesmann describes how to embed Google Visualizations using his googleVis package.

We are just as excited about R Markdown and think there is lots more that can be done with it. We’ll be talking about this along with Yihui Xie (author of knitr) and Jeff Horner (author of R/Apache and Rook) on Tuesday June 5th in New York:

At the meetup we’ll be showing the latest versions of knitr and RStudio and will be announcing some new R Markdown stuff—if you are in New York we’d love to see you there!

There’s an updated release of RStudio v0.96 available that includes some small enhancements and bugfixes, including:

  • Comment/uncomment for Sweave and LaTeX
  • Additional in-product documentation for R Markdown
  • Offline support for MathJax previews
  • More flexible handling of MathJax inline equations

The release notes include a full list all of the changes.

We’ve also published some additional documentation on using the new code folding and code sections features.

The updated version is available for download from our site now.

Today a new version of RStudio (v0.96) is available for download from our website. The main focus of this release is improved tools for authoring, reproducible research, and web publishing. This means lots of new Sweave features as well as tight integration with the knitr package (including support for creating dynamic web reports with the new R Markdown and R HTML formats).

We’ve also added some other frequently requested editing features including code folding. Here’s a short video demo of the new authoring and web publishing features:

We’re particularly excited about the new possibilities opened up by R Markdown, which make it easier than ever to create web content with R. On June 5th in New York we’ll talking about the latest releases of knitr and RStudio with Yihui Xie (knitr) and Jeff Horner (R/Apache and Rook):

We’ll also be announcing some more new stuff at the meetup—hope to see you there!

You can download RStudio 0.96 from our website now. Here’s a list of all the new features:

Sweave / knitr

  • Spell checking for Sweave and TeX documents.
  • Integrated PDF previewer that supports two-way synchronization (SyncTeX) between the editor and PDF view.
  • Support for weaving Rnw files using the knitr package (requires knitr version 0.5 or higher).
  • Parsing of TeX error logs to extract errors, warnings, and bad boxes and present them in a navigable list.
  • Chunk option auto-complete, chunk folding, jump to chunk, and iterative execution of chunks.
  • Compilation based on multiple input files (support for specifying a root TeX document) .
  • TeX formatting commands, block comment/uncomment, and various new compilation options.

Web Publishing

  • Editing and previewing R Markdown and R HTML files (like Sweave except for web pages).
  • Creation of easy to distribute standalone HTML files (with embedded images).
  • Support for including LaTeX, ASCIIMath, and MathML equations in web pages using MathJax.

Source Editing

  • Find in files with regular expressions.
  • Code folding (expanding and collapsing regions of code).
  • Automatic comment reflowing (Cmd+Shift+/).
  • Smart editing of Roxygen comments.
  • Syntax highlighting for Markdown, HTML, Javascript, and CSS files.
  • New font customization options.


  • Fixed incompatibility with Winbind for PAM authentication.
  • Fixed editor cursor off by one line problem that occurred after rapid scrolling.

Get every new post delivered to your Inbox.

Join 664 other followers