Either RUnit (an R package for unit testing) or runit (an Ubuntu Linux command-line tools for booting, running, and shutting down).

RUnit the R Package

RUnit (pronounced "r-unit") is an r package for unit-testing based upon xunit, with additional code inspection and report generation tools.

runit the Unix Command Line tool

runit (pronounced "run-it") is a unix command line tool for the ubuntu linux distribution. It performs the system’s booting, running, and shutdown in three stages. It must be run as Unix process no 1. It then performs the system’s booting, running, and shutdown in three stages.