-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathppm_repo_url.Rd
58 lines (52 loc) · 2.05 KB
/
ppm_repo_url.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ppm.R
\name{ppm_repo_url}
\alias{ppm_repo_url}
\title{Returns the current Posit Package Manager (PPM) repository URL}
\usage{
ppm_repo_url()
}
\value{
String scalar, the repository URL of the configured PPM
instance. If no PPM instance is configured, then the URL of the Posit
Public Package Manager instance. It includes the repository name, e.g.
\verb{https://packagemanager.posit.co/all}.
}
\description{
Returns the current Posit Package Manager (PPM) repository URL
}
\details{
This URL has the form \code{{base}/{repo}}, e.g.
\verb{https://packagemanager.posit.co/all}.
To configure a hosted PPM instance, set the \code{PKGCACHE_PPM_URL}
environment variable to the base URL (e.g.
\verb{https://packagemanager.posit.co}).
To use \code{\link[=repo_add]{repo_add()}} with PPM snapshots, you may also set the
\code{PKGCACHE_PPM_REPO} environment variable to the name of the default
repository.
On Linux, instead of setting these environment variables, you can also
add a PPM repository to the \code{repos} option, see \code{\link[base:options]{base::options()}}.
In the environment variables are not set, then \code{ppm_repo_url()} will
try extract the PPM base URL and repository name from this option.
If the \code{PKGCACHE_PPM_URL} environment variable is not set, and the
\code{repos} option does not contain a PPM URL (on Linux), then pak
uses the public PPM instance at \verb{https://packagemanager.posit.co}, with
the \code{cran} repository.
}
\examples{
\dontshow{if (FALSE) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
ppm_repo_url()
\dontshow{\}) # examplesIf}
}
\seealso{
The 'pkgcache and Posit Package Manager on Linux'
article at \url{https://r-lib.github.io/pkgcache/}.
\code{\link[=repo_resolve]{repo_resolve()}} and \code{\link[=repo_add]{repo_add()}} to find and configure PPM
snapshots.
Other PPM functions:
\code{\link{ppm_has_binaries}()},
\code{\link{ppm_platforms}()},
\code{\link{ppm_r_versions}()},
\code{\link{ppm_snapshots}()}
}
\concept{PPM functions}