testthat is an amazingly easy library to use unit-testing in R that has enough options to account for the majority of your usage scenarios. It is so simple that I just had to copy and past my same comments about assertthat!
See also http://cran.r-project.org/web/packages/testthat/index.html.