[R-pkg-devel] A replacement idiom for \value{\item{\var{...}}{}}

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Wed Jul 12 18:29:14 CEST 2023


Dear Sebastian,

Thank you for the advice!

On Mon, 10 Jul 2023 20:08:23 +0200
Sebastian Meyer <seb.meyer using fau.de> wrote:

> I think a workaround that currently works for your use case is to use 
> \code{fooval.\var{m}} as the label (i.e., wrapped inside \code).

The workaround works well, but I think I agree that \item{fooval.<m>}{}
is the the better option here. (I'm tempted, but I shouldn't use
\item{\code{fooval.\var{<m>}}}, because \code{} arguments should be
syntactically valid R.)

I will also use \var{<m>} outside the \item headers, at least for now.

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list