Generate tests from examples using roxygen and testthat

WWW: https://hughjonesd.github.io/doctest
