このサポートが追加されました (少なくとも roxygen2 では)。追加するだけ@section Llamas:で、新しいディレクティブが満たされるまで、その後はすべて Llamas セクションになります。ここに例があります
#' Llama llama llama
#'
#' More about llamas
#'
#' @section Llamas:
#' Are they ungulates?
#'
#' @section Not llamas:
#' This section is not about llamas. It is not very interesting.
#'
#' @param notused A parameter that isn't used at all!
#' @export
llama <- function(notused){
return("LLAMA LLAMA LLAMA")
}
.Rd ファイルに対して次のようになります
\name{llama}
\alias{llama}
\title{Llama llama llama}
\usage{
llama(notused)
}
\arguments{
\item{notused}{A parameter that isn't used at all!}
}
\description{
More about llamas
}
\section{Llamas}{
Are they ungulates?
}
\section{Not llamas}{
This section is not about llamas. It is not very
interesting.
}