Closed nmueller18 closed 1 year ago
I am puzzled, too, because at my (linux) system, it looks like this:
I suggest removing the csl: "r library(RCurl); ifelse(url.exists('https://www.zotero.org/styles/journal-of-archaeological-science'), 'https://www.zotero.org/styles/journal-of-archaeological-science', '')
"` alltogether, to avoid that error. What do you think?
But in this case the csl-file has to be bundled with the package, or am I wrong?
We do not need the csl, or only, if we want to display that style, I suppose.
The style is used by pandoc for knitting the vignettes, as far as I know.
That might be true, but we could go without. Than, the references would look like this:
Compare to the current one at the vignette on CRAN:
https://cran.r-project.org/web/packages/mortAAR/vignettes/mortAAR_vignette-1.html
I do not think this is a dramatic loss.
Ah, in this case, the line should go, as this is the easiest solution. I will prepare a new version.
Fixed in version 1.1.2.
In the latest CRAN-tests, there surfaced an error in the processing of the references in the vignettes via pandoc. It has to be fixed by 2022/05/06:
A Google-search did not bring up obvious solutions. The error probably implies that pandoc cannot access the csl-file linked in the vignettes. The error only occurs on the test Windows system, but also on my Mac the command
RCurl::url.exists('https://www.zotero.org/styles/offa')
used in the vignettes returnsFALSE
, which of course leaves the text string "r library(RCurl); ifelse(url.exists('https://www.zotero.org/styles/offa'), 'https://www.zotero.org/styles/offa', '')
" empty. The corresponding command of the packagehttr
httr::GET('https://www.zotero.org/styles/offa')
strangely returnsError in curl::curl_fetch_memory(url, handle = handle) : SSL certificate problem: certificate has expired
. However, a test of the address yielded a valid certificate. Increasing theconnecttimeout
setting of RCurl did not help, either. I am puzzled. One possible solution seems to bundle a copy of the offa-csl-file with the package but this would defy the whole idea of csl-styles somehow. Any other ideas?