R - move minitest requirement to top of file