Skip to content

List all available Posit Package Manager (PPM) snapshots

Usage

ppm_snapshots()

Value

Data frame with two columns:

  • date: the time the snapshot was taken, a POSIXct vector,

  • id: integer id of the snapshot, this can be used in the repository URL.

Details

The repository URL of a snapshot has the following form on Windows:

{base}/{repo}/{id}

where {base} is the base URL for PPM (see ppm_repo_url()) and {id} is either the date or id of the snapshot, or latest for the latest snapshot. E.g. these are equivalent:

https://packagemanager.posit.co/cran/5
https://packagemanager.posit.co/cran/2017-10-10

On a Linux distribution that has PPM support, the repository URL that contains the binary packages looks like this:

{base}/{repo}/__linux__/{binary_url}/{id}

where {id} is as before, and {binary_url} is a code name for a release of a supported Linux distribution. See the binary_url column of the result of ppm_platforms() for these code names.

See also

The 'pkgcache and Posit Package Manager on Linux' article at https://r-lib.github.io/pkgcache/dev/.

Other PPM functions: ppm_has_binaries(), ppm_platforms(), ppm_r_versions(), ppm_repo_url()

Examples

ppm_snapshots()
#> # A data frame: 1,000 × 2
#>    date                   id
#>    <dttm>              <int>
#>  1 2019-02-28 00:00:00   148
#>  2 2019-03-04 00:00:00   149
#>  3 2019-03-07 00:00:00   150
#>  4 2019-03-11 00:00:00   151
#>  5 2019-03-14 00:00:00   152
#>  6 2019-03-18 00:00:00   153
#>  7 2019-03-21 00:00:00   154
#>  8 2019-03-25 00:00:00   155
#>  9 2019-03-28 00:00:00   156
#> 10 2019-04-01 00:00:00   157
#> # ℹ 990 more rows