Debian Codegraph @

man/scaffold.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/scaffold.R
3 \name{scaffold}
4 \alias{scaffold}
5 \title{Generate project infrastructure}
6 \usage{
7 scaffold(
8 project = NULL,
9 version = NULL,
10 repos = getOption("repos"),
11 settings = NULL
12 )
13 }
14 \arguments{
15 \item{project}{The project directory. If \code{NULL}, then the active project will
16 be used. If no project is currently active, then the current working
17 directory is used instead.}
18
19 \item{version}{The version of renv to associate with this project. By
20 default, the version of renv currently installed is used.}
21
22 \item{repos}{The \R repositories to associate with this project.}
23
24 \item{settings}{A list of renv settings, to be applied to the project
25 after creation. These should map setting names to the desired values.
26 See \link{settings} for more details.}
27 }
28 \description{
29 Create the renv project infrastructure. This will:
30 \itemize{
31 \item Create a project library, \code{renv/library}.
32 \item Install renv into the project library.
33 \item Update the project \code{.Rprofile} to call \code{source("renv/activate.R")} so
34 that renv is automatically loaded for new \R sessions launched in
35 this project.
36 \item Create \code{renv/.gitignore}, which tells git to ignore the project library.
37 \item Create \code{.Rbuildignore}, if the project is also a package. This tells
38 \verb{R CMD build} to ignore the renv infrastructure,
39 \item Write a (bare) \link{lockfile}, \code{renv.lock}.
40 }
41 }
42 \examples{
43
44 \dontrun{
45 # create scaffolding with 'devtools' ignored
46 renv::scaffold(settings = list(ignored.packages = "devtools"))
47 }
48
49 }