-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOI handling on the DESCRIPTION
file docs
#1321
Comments
Could you please create a simple reprex illustrating the lack-of-escaping problem? |
Hope this is good enough for illustrating the issue: # Create a new package on tempdir()
# usethis::create_package(path = tempdir())
usethis::use_description(
fields = list(
Description =
"A test on roxygen2 <doi:10.1175/1520-0469(1996)053%3C2365:PORWON%3E2.0.CO;2>"
),
roxygen = TRUE
)
usethis::use_package_doc()
roxygen2::roxygenise()
devtools::check() Gives:
|
I have had this problem and solved it by converting such DOIs to short DOI URLs using the shortDOI Service That service shortens yours to: 10/bd3z9x i.e., |
I was thinking you could make an even simpler reprex with |
Related to #1164 and after #1315 (also check #1265 for reference).
I found that (non) encoding DOIs when parsing the url of the
Description
field (DESCRIPTION
file) may be an issue. On the specific case presented on #1164 (DOIs with angle brackets) the following string on theDescription
:is parsed to
When I run
devtools::check(cran = TRUE, remote = TRUE)
I got:The text was updated successfully, but these errors were encountered: