I'm developing an R package where the functions fall into logical groups; broadly, "Input", "Data Munging", "Analysis", "Output", "Info", and "Utils". I want my package index to be split into these major headings, in that order, with functions in each group listed in alphabetical order. I don't want anything silly like multiple cascading levels; one level will be fine.
The R package documentation system (which is otherwise a thing of beauty -- thanks guys!) gives me an index with vignettes and DESCRIPTION at the top, and then all the functions in alphabetical order. I thought that roxygen2 tags like @family
or @describeIn
would do the trick, but they don't. I've also noticed that some packages have their index split by initial function letter, but a quick look at the source code on Github doesn't suggest anything useful. Googling and Stackexchanging doesn't turn up anything beyond some hacks like this, which refers to lattice
.
I can't believe I'm the first person in the history of R who has wanted to do this! I generally assume that reasonable-sounding things will be easy or at least possible in open-source packages -- they're generally written by reasonable people -- but I'm at a loss here.
raster
for example (see cran.r-project.org/web/packages/raster/raster.pdf): a big introduction with all the functions summarized by topic. – Casseycassi