-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathppm_snapshots.Rd
59 lines (52 loc) · 1.96 KB
/
ppm_snapshots.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ppm.R
\name{ppm_snapshots}
\alias{ppm_snapshots}
\title{List all available Posit Package Manager (PPM) snapshots}
\usage{
ppm_snapshots()
}
\value{
Data frame with two columns:
\itemize{
\item \code{date}: the time the snapshot was taken, a \code{POSIXct} vector,
\item \code{id}: integer id of the snapshot, this can be used in the repository
URL.
}
}
\description{
List all available Posit Package Manager (PPM) snapshots
}
\details{
The repository URL of a snapshot has the following form on Windows:
\if{html}{\out{<div class="sourceCode">}}\preformatted{\{base\}/\{repo\}/\{id\}
}\if{html}{\out{</div>}}
where \code{{base}} is the base URL for PPM (see \code{\link[=ppm_repo_url]{ppm_repo_url()}}) and
\code{{id}} is either the date or id of the snapshot, or \code{latest} for
the latest snapshot. E.g. these are equivalent:
\if{html}{\out{<div class="sourceCode">}}\preformatted{https://packagemanager.posit.co/cran/5
https://packagemanager.posit.co/cran/2017-10-10
}\if{html}{\out{</div>}}
On a Linux distribution that has PPM support, the repository URL that
contains the binary packages looks like this:
\if{html}{\out{<div class="sourceCode">}}\preformatted{\{base\}/\{repo\}/__linux__/\{binary_url\}/\{id\}
}\if{html}{\out{</div>}}
where \code{{id}} is as before, and \code{{binary_url}} is a code name for a release
of a supported Linux distribution. See the \code{binary_url} column of the
result of \code{\link[=ppm_platforms]{ppm_platforms()}} for these code names.
}
\examples{
\dontshow{if (FALSE) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
ppm_snapshots()
\dontshow{\}) # examplesIf}
}
\seealso{
The 'pkgcache and Posit Package Manager on Linux'
article at \url{https://r-lib.github.io/pkgcache/}.
Other PPM functions:
\code{\link{ppm_has_binaries}()},
\code{\link{ppm_platforms}()},
\code{\link{ppm_r_versions}()},
\code{\link{ppm_repo_url}()}
}
\concept{PPM functions}