C++ Unit Tests for R Packages

Are you familiar with testthat? It’s another package from the Hadleyverse that makes it easy (and fun!) to write unit tests for your R code. The tests you write look something like this:

Read More →

Happy tmux

I was recently introduced to the joys of tmux by a colleague, and felt like sharing a bit of what I learned.

Read More →

Debugging with LLDB

We talked about debugging with valgrind last time, and saw how we can catch an insidious kind of memory usage error called a segfault with its memcheck tool.

Read More →

Debugging with Valgrind

Those of you who have attempted to write packages using C or C++ source code probably know this picture very well:

Read More →

RProfile Essentials

If there’s something programmers love, it’s dotfiles. A rather nice trend on GitHub has been for users to include their dotfiles on a public repo (a great idea if you want to make your personal configuration available across multiple systems – just git clone and apply!), and it’s a somewhat fun archaeological exercise to trawl through the various dotfile repositories to see how people have customized their tools to their liking. (For the record, my dotfiles and others live here.)

Read More →