devxy/build-cran-binaries
Watch
1
0
Fork
You've already forked build-cran-binaries
0

feat(stats): publish per-package download statistics #253

Merged
pat-s merged 2 commits from feat/download-stats-packages into main 2026-11-14 13:12:21 +00:00

2026-11-14

feat(stats): add 7-day and all-time counts to the package list
Give each package in downloads.json its downloads and clients for 7 days and all time as well as 30 days, so the dashboard's package table can follow the selected range.
2026-11-14 13:37:14 +01:00
feat(stats): publish per-package download statistics
Write one JSON file per package to stats/packages/<name>.json with its
daily series and its versions, distributions, R versions and
architectures for 7 days, 30 days and all time, for the package view
of the rpkgs.com dashboard.

- Add distinct package and byte counts to each window in downloads.json.
- Add breakdowns for every window as breakdownsByWindow, keeping
  breakdowns as the 30-day set for existing readers.
- Upload package files before the main file and purge them with one
  wildcard purge.
2026-11-14 13:29:58 +01:00