Skip to content
Prev 6742 / 12125 Next

[R-pkg-devel] CRAN note about \href{https://doi.org/...}{label} in Rd files

On 30/03/2021 12:36 p.m., Duncan Murdoch wrote:
One other suggestion:  define your own \doi{} macro.  The current 
definition (from R_HOME/share/Rd/macros/system.Rd) is

\newcommand{\doi}{\Sexpr[results=rd,stage=build]{tools:::Rd_expr_doi("#1")}}

You could make a two-argument variant on this.  You could even submit it 
as a patch on Bugzilla if you think others would like it.

Duncan Murdoch