[R-pkg-devel] DOI / URL issues in package vignettes
jw||ey@p@ych @end|ng |rom gm@||@com
Wed May 18 04:06:03 CEST 2022
I've been stuck on how best to include DOIs in R package vignettes.
I write the vignettes as R markdown files with knitr as the vignette
builder, which all goes fine.
I want to include references to relevant literature and use DOI links to
make accessing the articles easier. For example:
This is written as plain text in the .Rmd and ends up as a URL in the HTML
It works fine for me across Chrome, Edge, and Safari.
curl -I -L https://doi.org/10.1037/met0000434
gives the below on my system, which (I think?) means you get the expected
redirect for a DOI and then a 403 forbidden error. On the
win-builder.r-project.org service (which is fantastic) I get a status 400
For other DOIs, I am regularly getting a 503 service unavailable status
from both curl on my machine and winbuilder, but working fine in browser
(e.g., for: https://doi.org/10.1002/sim.7171).
Is there a general recommendation for how to proceed? I could just leave
out the DOIs / URLs and give the rest of the journal article citation?
Many thanks for any suggestions,
curl results on my system:
date: Wed, 18 May 2022 01:53:47 GMT
expires: Wed, 18 May 2022 02:30:38 GMT
expect-ct: max-age=604800, report-uri="
strict-transport-security: max-age=31536000; includeSubDomains; preload
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
HTTP/1.1 403 Forbidden
Cache-Control: no-cache, no-store
X-Iinfo: 12-17360972-0 NNNN RT(1652838827325 8) q(0 -1 -1 -1) r(0 -1)
expires=Wed, 17 May 2023 13:30:24 GMT; HttpOnly; path=/; Domain=.apa.org
Message: Bad Request
[[alternative HTML version deleted]]
More information about the R-package-devel