Hi Michal,
you can programmatically get the link via the RSPM API, e.g.
curl -X 'POST' 'https://packagemanager.rstudio.com/__api__/url' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{
"locked": false,
"repo": "cran",
"snapshot": "2019-05-06T00:00:00.000Z"
}' | jq
The above will retrieve the snapshot URL for 2019-05-06 in the resulting json file under "example".
IMPORTANT:
- The above approach makes use of an unpublished part of the RSPM API (RStudio Package Manager). As a consequence there is no guarantee that this approach will still work in the future and hence is unsupported at the moment.
- The obtained URL's however will be reproducible as per their respective setting.