[R-pkg-devel] lost braces note on CRAN pretest related to \itemize
Ivan Krylov
|kry|ov @end|ng |rom d|@root@org
Tue Jan 23 19:59:54 CET 2024
В Tue, 23 Jan 2024 19:39:54 +0100
Patrick Giraudoux <patrick.giraudoux using univ-fcomte.fr> пишет:
> \itemize{
> \item{.}{lm and glm objects can be passed directly as the upper
> scope of term addition (all terms added).
Inside the \itemize and \enumerate commands, the \item command doesn't
take any arguments:
https://cran.r-project.org/doc/manuals/R-exts.html#Lists-and-tables
Instead, it starts a new paragraph with a number (\enumerate) or a
bullet point (\itemize). R CMD check is reminding you that \itemize{
\item{foo}{bar} } is equivalent to \itemize{ \item foo bar } without
any braces.
If you meant to highlight a word by making it an argument of the \item
command, use the \describe command. Here, you're highlighting a dot,
which would be rendered with a bullet point before it, so it's probably
neither semantically nor visually appropriate.
> \value{
> A \code{\link[sf]{sfc}} object, of POINT geometry, with the
> following columns:
> \itemize{
> \item{ID}{ ID number}
The same problem applies here.
Additionally, R CMD check is reminding you that \value{} is implicitly
a special case of a \describe{} environment:
https://cran.r-project.org/doc/manuals/R-exts.html#index-_005cvalue
Since you're already using \item{}{} labels to name the components of
the value, just drop the \itemize{} (but keep its contents). \value{} is
enough.
--
Best regards,
Ivan
More information about the R-package-devel
mailing list