Assignment Conversion

The R language has two common methods of assignment. The = and <- binary operators are semantically equivalent in most cases, so which to use largely comes down to convention for the particular project. At times it may be desirable to convert between the two styles.

Read More →

covr - Test Coverage for R Packages

Being primarily a statistical language R lacks a number of common code analysis tools available for languages used more often for general programming. Testing has been done in the R source from very early on (Martin Maechler started adding tests on April 9th, 1998, 17 years ago!) However most of this testing was ad hoc, either requiring visual examination of the outputs, or simply testing current vs previous outputs. The RUnit (2005), svUnit (2009) and testthat (2009) packages brought more formal unit testing into R community.

Read More →

Wercker and Rocker: Finally Performant Continuous Integration for R

The Problem

Read More →

How does covr work anyway?

Since releasing covr I have gotten a couple of requests to explain how it works. This post is adapted from a vignette I wrote to try and explain that.

Read More →

Responsive Remote Completion

I have been using remote completion from remote boxes for a long time, as it is available in both zsh and bash. However because establishing an SSH connection is slow, the completion is not terribly useful, you spend more time waiting for it to complete than it saves in typing. However if you set up a few SSH options to keep a master connection alive and for subsequent SSH connections to use the master connection it then is very snappy.

Read More →