Debian Codegraph @

man/consent.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/consent.R
3 \name{consent}
4 \alias{consent}
5 \title{Consent to usage of renv}
6 \usage{
7 consent(provided = FALSE)
8 }
9 \arguments{
10 \item{provided}{The default provided response. If you need to provide
11 consent from a non-interactive \R session, you can invoke
12 \code{renv::consent(provided = TRUE)} explicitly.}
13 }
14 \value{
15 \code{TRUE} if consent is provided, or an \R error otherwise.
16 }
17 \description{
18 Provide consent to renv, allowing it to write and update certain files
19 on your filesystem.
20 }
21 \details{
22 As part of its normal operation, renv will write and update some files
23 in your project directory, as well as an application-specific cache
24 directory. These paths are documented within \link{paths}.
25
26 In accordance with the
27 \href{https://cran.r-project.org/web/packages/policies.html}{CRAN Repository Policy},
28 renv must first obtain consent from you, the user, before these actions
29 can be taken. Please call \code{renv::consent()} first to provide this consent.
30
31 You can also set the \R option:
32
33 \if{html}{\out{<div class="sourceCode">}}\preformatted{options(renv.consent = TRUE)
34 }\if{html}{\out{</div>}}
35
36 to implicitly provide consent for e.g. non-interactive \R sessions.
37 }