ropensci-review-tools / pkgstats

Historical statistics of every R package ever
https://docs.ropensci.org/pkgstats/
17 stars 1 forks source link

Update archive fns #56

Closed mpadge closed 2 months ago

mpadge commented 3 months ago

Current r-devel provides full archive data: https://nerdculture.de/@mpadge/112891734386567573. Once that's incorporated, the entire CRAN mirror can be ditched and the workflow updated to use that info alone.

mpadge commented 3 months ago

That adds most functionality, but can only be run on very recent results because of this: https://github.com/ropensci-review-tools/pkgstats/blob/cb5ecb4f7158008e803bc7679326c751a4f4370c/man/pkgstats_update.Rd#L48-L51

That will be easy to fix once the CRAN_archive_db() function comes into R-release. In the meantime, this function also means that the creation of current CRAN results from full archive results can also be simplified.

mpadge commented 2 months ago

That implements most of the updating as a single function to update all current databases. They are then only saved locally, so now just have to add code to update results with piggyback.

mpadge commented 2 months ago

And that now all works. Only remaining task is to add this to a daily workflow file ...

mpadge commented 2 months ago

Workflow file now scheduled for daily updates of all data, so can finally close this.