RStudio v0.99 Preview: Graphviz and DiagrammeR

2015-05-01 RStudio Team
Thumbnail
Soon after the announcement of htmlwidgets, Rich Iannone released the DiagrammeR package, which makes it easy to generate graph and flowchart diagrams using text in a Markdown-like syntax. The package is very flexible and powerful, and includes: Rendering of Graphviz graph visualizations (via viz.js) Creating diagrams and flowcharts using mermaid.js Facilities for mapping R objects into graphs, diagrams, and flowcharts. We’re very excited about the prospect of creating sophisticated diagrams using an easy to author plain-text syntax, and built some special authoring support for DiagrammeR into RStudio v0. Read more →

RStudio v0.99 Preview: Code Diagnostics

2015-04-28 RStudio Team
Thumbnail
In RStudio v0.99 we’ve made a major investment in R source code analysis. This work resulted in significant improvements in code completion, and in the latest preview release enable a new inline code diagnostics feature that highlights various issues in your R code as you edit. For example, here we’re getting a diagnostic that notes that there is an extra parentheses: Here the diagnostic indicates that we’ve forgotten a comma within a shiny UI definition: Read more →

Parse and process XML (and HTML) with xml2

2015-04-21 Hadley Wickham
I’m pleased to announced that the first version of xml2 is now available on CRAN. Xml2 is a wrapper around the comprehensive libxml2 C library that makes it easier to work with XML and HTML in R: Read XML and HTML with read_xml() and read_html(). Navigate the tree with xml_children(), xml_siblings() and xml_parent(). Alternatively, use xpath to jump directly to the nodes you’re interested in with xml_find_one() and xml_find_all(). Read more →

Get data out of excel and into R with readxl

2015-04-15 Hadley Wickham
I’m pleased to announced that the first version of readxl is now available on CRAN. Readxl makes it easy to get tabular data out of excel. It: Supports both the legacy .xls format and the modern xml-based .xlsx format. .xls support is made possible the with libxls C library, which abstracts away many of the complexities of the underlying binary format. To parse .xlsx, we use the insanely fast RapidXML C++ library. Read more →

Interactive time series with dygraphs

2015-04-14 RStudio Team
Thumbnail
The dygraphs package is an R interface to the dygraphs JavaScript charting library. It provides rich facilities for charting time-series data in R, including: Automatically plots xts time-series objects (or objects convertible to xts). Rich interactive features including zoom/pan and series/point highlighting. Highly configurable axis and series display (including optional 2nd Y-axis). Display upper/lower bars (e.g. prediction intervals) around series. Various graph overlays including shaded regions, event lines, and annotations. Read more →

RStudio v0.99 Preview: Tools for Rcpp

2015-04-14 RStudio Team
Thumbnail
Over the past several years the Rcpp package has become an indispensable tool for creating high-performance R code. Its power and ease of use have made C++ a natural second language for many R users. There are over 400 packages on CRAN and Bioconductor that depend on Rcpp and it is now the most downloaded R package. In RStudio v0.99 we have added extensive additional tools to make working with Rcpp more pleasant, productive, and robust, these include: Read more →

RStudio v0.99 Preview: Code Snippets

2015-04-13 RStudio Team
Thumbnail
We’re getting close to shipping the next version of RStudio (v0.99) and this week will continue our series of posts describing the major new features of the release (previous posts have already covered code completion, the revampeddata viewer, and improvements to vim mode). Note that if you want to try out any of the new features now you can do so by downloading the RStudio Preview Release. Code Snippets Code snippets are text macros that are used for quickly inserting common snippets of code. Read more →

readr 0.1.0

2015-04-09 Hadley Wickham
I’m pleased to announced that readr is now available on CRAN. Readr makes it easy to read many types of tabular data: Delimited files withread_delim(), read_csv(), read_tsv(), and read_csv2(). Fixed width files with read_fwf(), and read_table(). Web log files with read_log(). You can install it by running: install.packages("readr") Compared to the equivalent base functions, readr functions are around 10x faster. They’re also easier to use because they’re more consistent, they produce data frames that are easier to use (no more stringsAsFactors = FALSE! Read more →

Design patterns for action buttons

2015-04-07 Garrett Grolemund
Thumbnail
Action buttons can be tricky to use in Shiny because they work differently than other widgets. Widgets like sliders and select boxes maintain a value that is easy to use in your code. But the value of an action button is arbitrary. What should you do with it? Did you know that you should almost always call the value of an action button from observeEvent() or eventReactive()? The newest article at the Shiny Development Center explains how action buttons work, and it provides five useful patterns for working with action buttons. Read more →

Data Visualization cheatsheet, plus Spanish translations

2015-03-30 Garrett Grolemund
Thumbnail
We’ve added a new cheatsheet to our collection. Data Visualization with ggplot2 describes how to build a plot with ggplot2 and the grammar of graphics. You will find helpful reminders of how to use: geoms stats scales coordinate systems facets position adjustments legends, and themes The cheatsheet also documents tips on zooming. Download the cheatsheet here. Bonus - Frans van DunnĂ© of Innovate Online has provided Spanish translations of the Data Wrangling, R Markdown, Shiny, and Package Development cheatsheets. Read more →