R: Fix head build.

Closes #405.