Skip to content

[R-pkg-devel] Note on check of DOI: string

3 messages · Roger Bivand, Uwe Ligges

#
Using https://cran.r-project.org/web/packages/submission_checklist.html, I 
have a real but non-conformant DOI string in my DESCRIPTION file:

https://doi.org/10.1002/(SICI)1097-0258(19990830)18:16<2147::AID-SIM179>3.0.CO;2-I

giving in check --as-cran:

Found the following (possibly) invalid DOIs:
   DOI: 10.1002/(SICI)1097-0258(19990830)18:16<2147::AID-SIM179
     From: DESCRIPTION
     Status: Bad Request
     Message: 400

as parsing the string appears not to parse the embedded ">" correctly. Is 
escaping possible? Easiest would be just dropping the DOI in this case, as 
it is not rendering correctly. It looks like the pattern string in 
tools/R/doitools.R line 33 is over-eager.

Hints welcome,

Roger
#
On 02.04.2019 18:35, Roger Bivand wrote:
URLencode() it for the DESCRIPTION file.

Best,
Uwe
#
On Tue, 2 Apr 2019, Uwe Ligges wrote:

            
Thanks, that is much simpler than expecting processing DESCRIPTION to sort 
it out: URLencode() the string in R and copy/paste the output into the 
DESCRIPTION file.

Best wishes,

Roger