There's a field in the Rd file you can add called keywords
. Most keywords don't do anything except help you search for functions with one notable exception: internal
. Marking a function with the internal keyword removes it from the index. According to the roxygen2 vignette:
@keywords keyword1 keyword2 ...
to add standardised keywords. Keywords are optional, but if present, must be taken from the predefined list replicated in the keywords vignette. Keywords are not very useful, except for @keywords internal
. Using the internal keyword removes all functions in the associated .Rd file from the documentation index and disables some of their automated tests. A common use case is to both export a function (using @export
) and marking it as internal. That way, advanced users can access a function that new users would be confused about if they were to see it in the index.
Adding @keywords internal
to the roxygen comments will give the desired result.