Skip to content

How to deal with DOIs that include ">" #1164

@maelle

Description

@maelle

From https://stat.ethz.ch/pipermail/r-package-devel/2020q4/006236.html

If one has a DOI like <doi:10.1175/1520-0469(1981)038<1179:TSLROA>2.0.CO;2> in the package DESCRIPTION one needs to URLencode it for R CMD check to pass. I.e. "doi:10.1175/1520-0469(1981)038%3C1179:TSLROA%3E2.0.CO;2"

The problem is that the URL encoded version of the URL then gets written in the package-level manual page. And when going from Rd to HTML, the DOI is truncated after the "%".

Could roxygen2 transform DOIs to URLs and unencode their text?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorrd ✍️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions