Utilities for helping test R scripts.