The goal of pkgmin is to show the structure of an R package.
You can install the dev version of pkgmin from GitHub with:
devtools::install_github("ahasverus/pkgmin", build_vignettes = TRUE)
Browse the vignette for a complete example:
library(pkgmin)
vignette(topic = "pkgmin")
Enjoy !