You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Manual{R-polyclip,
title = {polyclip: Polygon Clipping},
author = {Angus Johnson and Adrian Baddeley},
year = {2023},
note = {R package version 1.10-6},
url = {http://www.angusj.com/delphi/clipper.php},
}
In R 4.4.0 (2nd URL in note field, 3rd URL ignored):
@Manual{R-polyclip,
title = {polyclip: Polygon Clipping},
author = {Angus Johnson and Adrian Baddeley},
year = {2023},
note = {R package version 1.10-6,
https://sourceforge.net/projects/polyclipping},
url = {http://www.angusj.com/delphi/clipper.php},
}
if (getRversion() <'4.3.2'&& grepl('[, ]', meta$URL))
meta$URL= sub('[, ].*', '', meta$URL)
# always remove URLs after the first one
meta$URL= sub(',? .*', '', meta$URL)
I don't understand where these two replacement steps came from, but the second one is only active if it finds a space (so not for "polyclip", see above).
AFAICS, these four lines could simply be replaced by
meta$URL= sub('[, \t\n].*', '', meta$URL)
given that the URLs can be separated by comma or whitespace.
The text was updated successfully, but these errors were encountered:
The intention of #2264 was "if multiple URLs are present, drop all but the first" and that is also what is documented in
help(write_bib)
:Unfortunately, this is not always true and may depend on the R version.
For example:
In R 4.3.0 (as intended):
In R 4.4.0 (2nd URL in note field, 3rd URL ignored):
The problematic code seems to be here:
knitr/R/citation.R
Lines 96 to 99 in 726fe15
I don't understand where these two replacement steps came from, but the second one is only active if it finds a space (so not for "polyclip", see above).
AFAICS, these four lines could simply be replaced by
given that the URLs can be separated by comma or whitespace.
The text was updated successfully, but these errors were encountered: