-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathsysreqs_db_match.Rd
57 lines (56 loc) · 1.97 KB
/
sysreqs_db_match.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sysreqsdocs.R
\name{sysreqs_db_match}
\alias{sysreqs_db_match}
\title{Match system requirement descriptions to the database}
\usage{
sysreqs_db_match(specs, sysreqs_platform = NULL)
}
\arguments{
\item{specs}{Character vector of system requirements descriptions.}
\item{sysreqs_platform}{System requirements platform. If \code{NULL}, then the
\code{sysreqs_platform} \eval{man_config_link("configuration option")}
is used, which defaults to the current platform. Set this option if
\eval{.packageName} does not detect your platform correctly.}
}
\value{
Data frame with columns:
\itemize{
\item \code{spec}: the input \code{specs}.
\item \code{sysreq}: name of the system library or tool.
\item \code{packages}: system packages, list column of character vectors.
Rarely it can be an empty string, e.g. if a \code{pre_install} script
performs the installation.
\item \code{pre_install}: list column of character vectors. Shell script(s) to
run before the installation.
\item \code{post_install}: list column of character vectors. Shell script(s) to
run after the installation.
}
}
\description{
In the usual workflow pak matches the
\code{SystemRequirements} fields of the \code{DESCRIPTION} files to the database.
}
\details{
The \code{sysreqs_db_match()} function lets you match any string, and it is
mainly useful for debugging.
}
\examples{
\dontshow{if (Sys.getenv("IN_PKGDOWN") == "true") (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
sysreqs_db_match(
c("Needs libcurl", "Java, libssl"),
sysreqs_platform = "ubuntu-22.04"
)
\dontshow{\}) # examplesIf}
}
\seealso{
Other system requirements functions:
\code{\link{pkg_sysreqs}()},
\code{\link{sysreqs_check_installed}()},
\code{\link{sysreqs_db_list}()},
\code{\link{sysreqs_db_update}()},
\code{\link{sysreqs_is_supported}()},
\code{\link{sysreqs_list_system_packages}()},
\code{\link{sysreqs_platforms}()}
}
\concept{system requirements functions}