Introduction to C++ Variadic Templates

This is a friendly introduction to variadic templates (and thereby, variadic functions) in C++. We can use variadic functions to write functions that accept an arbitrary number of arguments.

Read More →

What is a Function?

Let’s investigate what, underneath the covers, an R function really is, and how the components are used when R evaluates a function. In doing so, we’ll take a number of detours, as understanding how R function calls really work requires an understanding of some subtle details. By the end of this, we’ll be able to simulate what R does internally when it evaluates a function.

Read More →

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 →