Conversation
Four URLs were reported as unreachable: * The Eurostat copyright page under web/main/about/policies/ redirects to the ECAS login wall. Point at web/main/help/copyright-notice instead, which is served directly. * The Eurostat API wiki (wikis.ec.europa.eu) moved behind ECAS login in its entirety, so the "API Statistics - data query" page can no longer be cited. Point at the public web-services landing page instead. * GitHub returns 404 on /stargazers and /watchers for logged-out visitors, so the star and watch badges link to the repository front page instead. README.md is regenerated from README.Rmd with rmarkdown::render(). This also refreshes the search_eurostat() example output and picks up some formatting differences from the local pandoc (3.1.11.1). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XqX4GsA4o265M8E56WRvVA
Drops one entry from Imports, which has grown to 21 non-default packages and triggers a CRAN check note. stringr was already imported and is a thin wrapper around stringi, so the calls map one to one and the performance characteristics that motivated using stringi over gsub here are retained. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XqX4GsA4o265M8E56WRvVA
Each of these is needed by exactly one optional code path, so importing them unconditionally makes the package vulnerable to any of them becoming unavailable for no benefit to users who never take that path: * classInt - cut_to_classes() with automatic breaks (not manual = TRUE) * countrycode - label_eurostat(countrycode = ...) * ISOweek - eurotime2date() on weekly data A new internal helper require_suggested() checks for the package and, if it is missing, raises an error naming the package, what it is needed for and how to install it. With this and the preceding stringi change, Imports drops from 21 to 17 packages, below the threshold for the CRAN check note. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XqX4GsA4o265M8E56WRvVA
For daily "YYYY-MM-DD" input the month and day were sliced at the wrong character positions, producing strings such as "1990-01---31". Read them from positions 6-7 and 9-10 instead. The lenient parsing in lubridate::ymd() absorbed the malformed strings when last = FALSE, so this went unnoticed, but with last = TRUE the function errored out with "'from' must be a finite number": the shift lookup has no entry for the daily time code and returned NA. A single day already is the last day of the period it denotes, so it is now excluded from the end-of-period adjustment altogether, as weeks already were. Verified against all six time codes (Y, S, Q, M, D, W) for both values of last. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XqX4GsA4o265M8E56WRvVA
The man pages pick up the version bump to 4.1.1 in the auto-generated citation blocks. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XqX4GsA4o265M8E56WRvVA
The package linked the copyright notice as both .../eurostat/help/copyright-notice and .../eurostat/web/main/help/copyright-notice. Both resolve, but carrying two spellings for one page is needless drift. Converge on the shorter form, which was already used in 18 of the 22 places. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XqX4GsA4o265M8E56WRvVA
|
Ok I manually checked these and they seem sensible. I was thinking about the number of Imports and of course 17 is better than 21 but the difference is not drastic. Additionally: Moving ISOweek from Imports to Suggests breaks the following test: Moving classInt from Imports to Suggests produces the following message when building: and breaks the following test: Actually countrycode will anyway be loaded since eurostat package imports the regions package which imports countrycode so moving it to suggests in eurostat lowers the number but still ensures that countrywide is actually installed... Actually I noticed that functions from these packages are not probably used if the user just uses default parameters for eurostat function calls, so making them optional should not result in constant nagging. I would still suggest that Claude reverses commit 72a6988 and turns ISOweek, classInt and countrycode back to Imports. The other option is to make these packages optional in documentation and tests like the |
This reverts commit 72a6988.
|
Done. If it seems too complicated I can just revert the whole thing to what it was. |
"Found the following (possibly) invalid URLs: [...] from README.md Message: Invalid URL: '#' not allowed in fragment"
|
For some reason when I rebuild docs on my computer (R version 4.6.1) the printed version of the citation has a dot between "https://doi.org/10.32614/CRAN.package.eurostat" and "R package version" whereas documentation built on your computer has a comma between those. Weird. I re-ran the tests on win-release and win-devel and removed Gitter links from the README.md file for the CRAN release. I think we can re-add them after submitting, although Gitter is not used that much (at all). |
|
Maybe we can just remove Gitter? Should we activate the Github "Discussions" tab? That provides a forum in case someone needs. The link could be updated accordingly. |
|
Weird thing with period vs. comma.. what shall we do with that..? |
|
I don't know if GitHub discussions has a separate button we could include but I can add a link to Discussions. ChatGPT suggested that it might be related to R version and R package versions related to printing the output (so R version since we use the bibentry function from built-in utils package) or more likely system locale. Mine is so it's not a big deal but just annoying since the citation is included in so many help files (because it makes software citations more likely than just burying it in |
|
Now good? This was R build version issue. |
|
Everything seems to be in order now. I think it's ready for release. Only thing I wonder if whether we should squash all the commits in this PR into one 4.1.0 release since these versions after 4.1.1 have been very minor improvements that, in my opinion, don't even deserve to be documented in NEWS.md. But going forward with 4.1.4 as the CRAN release version is fine by me as well, maybe we could add a new NEWS section for 4.1.4 that pulls everything together. |
antagomir
left a comment
There was a problem hiding this comment.
ok done - ok to submit now?
Added some updates based on CRAN build/check run.