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

Floris Vanderhaeghe ||or|@@v@nderh@eghe @end|ng |rom |nbo@be
Tue Mar 30 16:39:50 CEST 2021


> > I just tried \doi{10.5281/zenodo.2611233} and it worked. 

Sure, but what about making a hyperlink to 
https://doi.org/10.5281/zenodo.2611233 while showing "text" in the 
documentation, as in \href{wwwaddress}{text}. I assume the CRAN note 
appears because it wants literal DOI strings in the documentation to be 
specified with \doi{}. However with \href{} the DOI string remains hidden.

href{\doi{10.5281/zenodo.2611233}}{text} is a non-functional link while 
\href{https://doi.org/10.5281/zenodo.2611233}{text} is functional.



More information about the R-package-devel mailing list