Debian Codegraph @

man/modify.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/modify.R
3 \name{modify}
4 \alias{modify}
5 \title{Modify a Lockfile}
6 \usage{
7 modify(project = NULL, changes = NULL)
8 }
9 \arguments{
10 \item{project}{The project directory. If \code{NULL}, then the active project will
11 be used. If no project is currently active, then the current working
12 directory is used instead.}
13
14 \item{changes}{A list of changes to be merged into the lockfile.
15 When \code{NULL} (the default), the lockfile is instead opened for
16 interactive editing.}
17 }
18 \value{
19 The project directory, invisibly. Note that this function is normally
20 called for its side effects.
21 }
22 \description{
23 Modify a project's lockfile, either interactively or non-interactively.
24 }
25 \details{
26 After edit, if the lockfile edited is associated with the active project, any
27 state-related changes (e.g. to \R repositories) will be updated in the
28 current session.
29 }
30 \examples{
31 \dontrun{
32
33 # modify an existing lockfile
34 if (interactive())
35 renv::modify()
36
37 }
38 }