Can I use a nested element in .Rd?
I can use \ item to create a list in .Rd files.
\item{blah}{blah}
But it seems that I cannot create a nested put \ item list in another \item
, as in
\item{blah}{ \item{blah1}{some} \item{blah2}{thing} }
Does anyone know a way to create a nested list in the R documentation? Thank.
+3
source to share
1 answer
Here's an example (ignore #'
if you're not using roxygen):
#' \itemize{
#' \item First level, itemize, first item
#' \itemize{
#' \item Second level, itemize, first item
#' \item Second level, itemize, second item
#' \enumerate{
#' \item Third level, enumerate, first item
#' \item Third level, enumerate, second item
#' }
#' }
#' \item First level, itemize, second item
#' }
What is the result (I used it in the description block):
+3
source to share