litr: Writing R packages via literate programming
An R package that generates an entire R package in a single R markdown file. The R package is created when you knit the Rmd file. For larger packages, you can write a bookdown that defines the package.