Debian Codegraph @

man/rebuild.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/rebuild.R
3 \name{rebuild}
4 \alias{rebuild}
5 \title{Rebuild the packages in your project library}
6 \usage{
7 rebuild(
8 packages = NULL,
9 recursive = TRUE,
10 ...,
11 type = NULL,
12 prompt = interactive(),
13 library = NULL,
14 project = NULL
15 )
16 }
17 \arguments{
18 \item{packages}{The package(s) to be rebuilt. When \code{NULL}, all packages
19 in the library will be reinstalled.}
20
21 \item{recursive}{Boolean; should dependencies of packages be rebuilt
22 recursively? Defaults to \code{TRUE}.}
23
24 \item{...}{Unused arguments, reserved for future expansion. If any arguments
25 are matched to \code{...}, renv will signal an error.}
26
27 \item{type}{The type of package to install ("source" or "binary"). Defaults
28 to the value of \code{getOption("pkgType")}.}
29
30 \item{prompt}{Boolean; prompt the user before taking any action? For backwards
31 compatibility, \code{confirm} is accepted as an alias for \code{prompt}.}
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{project}{The project directory. If \code{NULL}, then the active project will
37 be used. If no project is currently active, then the current working
38 directory is used instead.}
39 }
40 \value{
41 A named list of package records which were installed by renv.
42 }
43 \description{
44 Rebuild and reinstall packages in your library. This can be useful as a
45 diagnostic tool -- for example, if you find that one or more of your
46 packages fail to load, and you want to ensure that you are starting from a
47 clean slate.
48 }
49 \examples{
50 \dontrun{
51
52 # rebuild the 'dplyr' package + all of its dependencies
53 renv::rebuild("dplyr", recursive = TRUE)
54
55 # rebuild only 'dplyr'
56 renv::rebuild("dplyr", recursive = FALSE)
57
58 }
59 }