Debian Codegraph @

man/update.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/update.R
3 \name{update}
4 \alias{update}
5 \title{Update packages}
6 \usage{
7 update(
8 packages = NULL,
9 ...,
10 exclude = NULL,
11 library = NULL,
12 type = NULL,
13 rebuild = FALSE,
14 check = FALSE,
15 prompt = interactive(),
16 lock = FALSE,
17 all = FALSE,
18 project = NULL
19 )
20 }
21 \arguments{
22 \item{packages}{A character vector of \R packages to update. When \code{NULL}
23 (the default), all packages (apart from any listed in the \code{ignored.packages}
24 project setting) will be updated.}
25
26 \item{...}{Unused arguments, reserved for future expansion. If any arguments
27 are matched to \code{...}, renv will signal an error.}
28
29 \item{exclude}{A set of packages to explicitly exclude from updating.
30 Use \verb{renv::update(exclude = <...>)} to update all packages except for
31 a specific set of excluded packages.}
32
33 \item{library}{The \R library to be used. When \code{NULL}, the active project
34 library will be used instead.}
35
36 \item{type}{The type of package to install ("source" or "binary"). Defaults
37 to the value of \code{getOption("pkgType")}.}
38
39 \item{rebuild}{Force packages to be rebuilt, thereby bypassing any installed
40 versions of the package available in the cache? This can either be a
41 boolean (indicating that all installed packages should be rebuilt), or a
42 vector of package names indicating which packages should be rebuilt.}
43
44 \item{check}{Boolean; check for package updates without actually
45 installing available updates? This is useful when you'd like to determine
46 what updates are available, without actually installing those updates.}
47
48 \item{prompt}{Boolean; prompt the user before taking any action? For backwards
49 compatibility, \code{confirm} is accepted as an alias for \code{prompt}.}
50
51 \item{lock}{Boolean; update the \code{renv.lock} lockfile after the successful
52 installation of the requested packages?}
53
54 \item{all}{Boolean; should \code{renv} check all library paths for out-of-date
55 packages? When \code{FALSE} (the default), only the project library will be
56 checked for out-of-date packages.}
57
58 \item{project}{The project directory. If \code{NULL}, then the active project will
59 be used. If no project is currently active, then the current working
60 directory is used instead.}
61 }
62 \value{
63 A named list of package records which were installed by renv.
64 }
65 \description{
66 Update packages which are currently out-of-date. Currently supports CRAN,
67 Bioconductor, other CRAN-like repositories, GitHub, GitLab, Git, and
68 BitBucket.
69
70 Updates will only be checked from the same source -- for example,
71 if a package was installed from GitHub, but a newer version is
72 available on CRAN, that updated version will not be seen.
73 }
74 \examples{
75 \dontrun{
76
77 # update the 'dplyr' package
78 renv::update("dplyr")
79
80 }
81 }