[Rd] Minor equation fix for ?stats::symnum
Kurt Hornik
Kurt@Horn|k @end|ng |rom wu@@c@@t
Mon Aug 17 10:26:46 CEST 2026
>>>>> Ivan Krylov writes:
Thanks, committed now.
Best
-k
> \sQuote{...} or \dQuote{...} currently don't work inside the plain text
> part of Rd equation tags, and they also don't look great when rendered
> as LaTeX. The only such use is in ?stats::symnum; neither macro is used
> on CRAN. Perhaps it's better to move sQuote() into the \code{} tag?
> Index: src/library/stats/man/symnum.Rd
> ===================================================================
> --- src/library/stats/man/symnum.Rd (revision 90399)
> +++ src/library/stats/man/symnum.Rd (working copy)
> @@ -79,9 +79,9 @@
> If \code{legend} is \code{TRUE} (as by default when there are more
> than two classes), the result has an attribute \code{"legend"}
> containing a legend of the returned character codes, in the form
> - \deqn{c_1 s_1 c_2 s_2 \dots s_n c_{n+1}}{c[1] \sQuote{s[1]} c[2] \sQuote{s[2]} \dots \sQuote{s[n]} c_[n+1]}
> + \deqn{c_1 s_1 c_2 s_2 \dots s_n c_{n+1}}{c[1] s[1] c[2] s[2] \dots s[n] c_[n+1]}
> where \eqn{c_j}{c[j]}\code{ = cutpoints[j]} and
> - \eqn{s_j}{s[j]}\code{ = symbols[j]}.
> + \eqn{s_j}{s[j]}\code{ = sQuote(symbols[j])}.
> }
> \author{Martin Maechler \email{maechler using stat.math.ethz.ch}}
> \seealso{
> Alternatively, tools::Rd2txt could be taught to understand both tags.
> --
> Best regards,
> Ivan
> (Sending from a different address because Microsoft ate the previous
> message. So it goes.)
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
More information about the R-devel
mailing list