The R package roxyPackage significantly simplifies the process of packaging
your R code. Although it is common practice in the scientific community to
share solutions in the form of R scripts, there are several advantages of
providing a proper R package instead: It can include unit tests, declare
dependencies on other packages, come with standardised documentation,
and automatic updates are possible, to name but a few. The drawback of
packaging is that it takes more time and effort to manually set up the correct
directory structure and write all necessary metadata files. roxyPackage
automatises this entire workflow; not only does it generate all needed
directories and files automatically, it is also capable of maintaining a fully
functional, CRAN-like repository for your packages. It uses the roxygen2
package for generating documentation and supports building source packages as
well as binary packages for Windows, Mac OS X and Debian GNU/Linux.