| 1 | |
| 2 | - name: "activate.prompt" |
| 3 | type: "logical[1]" |
| 4 | default: true |
| 5 | description: > |
| 6 | Automatically prompt the user to activate the current project, if it does |
| 7 | not appear to already be activated? This is mainly useful to help ensure |
| 8 | that calls to `renv::snapshot()` and `renv::restore()` use the project |
| 9 | library. See `?renv::activate` for more details. |
| 10 | |
| 11 | - name: "autoloader.enabled" |
| 12 | type: "logical[1]" |
| 13 | default: true |
| 14 | description: > |
| 15 | Enable the renv auto-loader? When `FALSE`, renv will not |
| 16 | automatically load a project containing an renv autoloader within |
| 17 | its `.Rprofile`. In addition, renv will not write out the project |
| 18 | auto-loader in calls to `renv::init()`. |
| 19 | |
| 20 | - name: "auto.snapshot" |
| 21 | type: "logical[1]" |
| 22 | default: false |
| 23 | description: > |
| 24 | Automatically snapshot changes to the project library when the project |
| 25 | dependencies change? |
| 26 | |
| 27 | - name: "bioconductor.init" |
| 28 | type: "*" |
| 29 | default: ~ |
| 30 | description: > |
| 31 | The default value to be used for the `bioconductor` parameter in calls |
| 32 | to `renv::init()`. This can be used if you'd like to automatically enable |
| 33 | or disable Bioconductor by default for newly-initialized `renv` projects. |
| 34 | See the documentation in `?renv::init` for more details. |
| 35 | |
| 36 | - name: "bitbucket.host" |
| 37 | type: "character[1]" |
| 38 | default: "api.bitbucket.org/2.0" |
| 39 | description: > |
| 40 | The default Bitbucket host to be used during package retrieval. |
| 41 | |
| 42 | - name: "copy.method" |
| 43 | type: "*" |
| 44 | default: "auto" |
| 45 | description: > |
| 46 | The method to use when attempting to copy directories. See **Copy Methods** |
| 47 | for more information. |
| 48 | |
| 49 | - name: "crandb.enabled" |
| 50 | type: "logical[1]" |
| 51 | default: false |
| 52 | description: > |
| 53 | Use the [crandb](https://github.com/r-hub/crandb) service when |
| 54 | looking up packages from CRAN which are not available in the configured |
| 55 | repositories? When enabled, renv will query the crandb API to find the |
| 56 | latest version of a package compatible with the current version of R. |
| 57 | This can be useful when an older version of R is being used, and the |
| 58 | latest version of a package on CRAN requires a newer version of R. |
| 59 | Disabled by default. |
| 60 | |
| 61 | - name: "connect.timeout" |
| 62 | type: "integer[1]" |
| 63 | default: 20 |
| 64 | description: > |
| 65 | The amount of time to spend (in seconds) when attempting to download |
| 66 | a file. Only applicable when the `curl` downloader is used. |
| 67 | |
| 68 | - name: "connect.retry" |
| 69 | type: "integer[1]" |
| 70 | default: 3 |
| 71 | description: > |
| 72 | The number of times to attempt re-downloading a file, when transient |
| 73 | download errors occur. Only applicable when the `curl` downloader is used. |
| 74 | |
| 75 | - name: "cache.enabled" |
| 76 | type: "logical[1]" |
| 77 | default: true |
| 78 | description: > |
| 79 | Enable the global renv package cache? When active, renv will install |
| 80 | packages into a global cache, and link or copy packages from the cache |
| 81 | into your \R library as appropriate. This can greatly save on disk space |
| 82 | and install time when \R packages are shared across multiple projects in |
| 83 | the same environment. |
| 84 | |
| 85 | - name: "cache.symlinks" |
| 86 | type: "logical[1]" |
| 87 | code: > |
| 88 | .Platform$OS.type == "unix" |
| 89 | description: > |
| 90 | Symlink packages from the global renv package cache into your project |
| 91 | library? When `TRUE`, renv will use symlinks (or, on Windows, junction |
| 92 | points) to reference packages installed in the cache. Set this to `FALSE` |
| 93 | if you'd prefer to copy packages from the cache into your project library. |
| 94 | Enabled by default, except on Windows where this feature is only enabled |
| 95 | if the project library and global package cache are on the same volume. |
| 96 | |
| 97 | - name: "dependency.errors" |
| 98 | type: "character[1]" |
| 99 | default: "reported" |
| 100 | description: > |
| 101 | Many renv APIs require the enumeration of your project's \R package |
| 102 | dependencies. This option controls how errors that occur during this enumeration |
| 103 | are handled. By default, errors are reported but are non-fatal. Set this to `"fatal"` |
| 104 | to force errors to be fatal, and `"ignored"` to ignore errors altogether. See |
| 105 | [`dependencies()`] for more details. |
| 106 | |
| 107 | - name: "dependencies.limit" |
| 108 | type: "integer[1]" |
| 109 | default: 1000 |
| 110 | description: > |
| 111 | By default, renv reports if it discovers more than this many files when |
| 112 | looking for dependencies, as that may indicate you are running |
| 113 | `dependencies()` in the wrong place. Set to `Inf` to disable this warning. |
| 114 | |
| 115 | - name: "exported.functions" |
| 116 | type: "character[*]" |
| 117 | default: "*" |
| 118 | description: > |
| 119 | When `library(renv)` is called, should its exports be placed on the search |
| 120 | path? Set this to `FALSE` to avoid issues that can arise with, for example, |
| 121 | `renv::load()` masking `base::load()`. In general, we recommend referencing |
| 122 | renv functions from its namespace explicitly; e.g. prefer |
| 123 | `renv::snapshot()` over `snapshot()`. |
| 124 | |
| 125 | By default, all exported renv functions are attached and placed on the |
| 126 | search path, for backwards compatibility with existing scripts using renv. |
| 127 | |
| 128 | |
| 129 | - name: "external.libraries" |
| 130 | type: "character[*]" |
| 131 | default: ~ |
| 132 | description: > |
| 133 | A character vector of external libraries, to be used in tandem with |
| 134 | your projects. Be careful when using external libraries: it's possible that things |
| 135 | can break within a project if the version(s) of packages used in your project |
| 136 | library happen to be incompatible with packages in your external libraries; for |
| 137 | example, if your project required `xyz 1.0` but `xyz 1.1` was present and loaded |
| 138 | from an external library. Can also be an \R function that provides the paths to |
| 139 | external libraries. Library paths will be expanded via [`.expand_R_libs_env_var()`] |
| 140 | as necessary. |
| 141 | |
| 142 | - name: "filebacked.cache" |
| 143 | type: "logical[1]" |
| 144 | default: true |
| 145 | description: > |
| 146 | Enable the renv file-backed cache? When enabled, renv will cache the |
| 147 | contents of files that are read (e.g. DESCRIPTION files) in memory, thereby |
| 148 | avoiding re-reading the file contents from the filesystem if the file has |
| 149 | not changed. renv uses the file `mtime` to determine if the file has |
| 150 | changed; consider disabling this if `mtime` is unreliable on your system. |
| 151 | |
| 152 | - name: "github.host" |
| 153 | type: "character[1]" |
| 154 | default: "api.github.com" |
| 155 | description: > |
| 156 | The default GitHub host to be used during package retrieval. |
| 157 | |
| 158 | - name: "gitlab.host" |
| 159 | type: "character[1]" |
| 160 | default: "gitlab.com" |
| 161 | description: > |
| 162 | The default GitLab host to be used during package retrieval. |
| 163 | |
| 164 | - name: "hydrate.libpaths" |
| 165 | type: "character[*]" |
| 166 | default: ~ |
| 167 | description: > |
| 168 | A character vector of library paths, to be used by [hydrate()] |
| 169 | when attempting to hydrate projects. When empty, the default set of library paths |
| 170 | (as documented in `?renv::hydrate`) are used instead. See [`hydrate()`] for more details. |
| 171 | |
| 172 | - name: "install.build" |
| 173 | type: "logical[1]" |
| 174 | default: false |
| 175 | description: > |
| 176 | Should downloaded package archives be built (via `R CMD build`) before installation? |
| 177 | When TRUE, package vignettes will also be built as part of package installation. |
| 178 | Because building packages before installation may require packages within 'Suggests' |
| 179 | to be available, this option is not enabled by default. |
| 180 | |
| 181 | - name: "install.keep.source" |
| 182 | type: "logical[1]" |
| 183 | default: true |
| 184 | description: > |
| 185 | Should `R CMD INSTALL` be invoked with `--with-keep.source` when installing |
| 186 | packages from source? When `TRUE` (the default), renv preserves source |
| 187 | references on installed functions, which can be useful for debugging. Set |
| 188 | to `FALSE` to install packages with `--without-keep.source`; this can |
| 189 | significantly reduce the serialized size of functions defined by installed |
| 190 | packages. |
| 191 | |
| 192 | - name: "install.remotes" |
| 193 | type: "logical[1]" |
| 194 | default: true |
| 195 | description: > |
| 196 | Should renv read a package's `Remotes:` field when determining how |
| 197 | package dependencies should be installed? |
| 198 | |
| 199 | - name: "install.shortcuts" |
| 200 | type: "logical[1]" |
| 201 | default: true |
| 202 | description: > |
| 203 | Allow for a set of 'shortcuts' when installing packages with renv? When |
| 204 | enabled, if renv discovers that a package to be installed is already |
| 205 | available within the user or site libraries, then it will install a |
| 206 | local copy of that package. |
| 207 | |
| 208 | - name: "install.staged" |
| 209 | type: "logical[1]" |
| 210 | default: true |
| 211 | description: > |
| 212 | DEPRECATED: Please use `renv.config.install.transactional` instead. |
| 213 | |
| 214 | - name: "install.transactional" |
| 215 | type: "logical[1]" |
| 216 | default: true |
| 217 | description: > |
| 218 | Perform a transactional install of packages during install and restore? When |
| 219 | enabled, renv will first install packages into a temporary library, and later |
| 220 | copy or move those packages back into the project library only if all packages |
| 221 | were successfully downloaded and installed. This can be useful if you'd like to |
| 222 | avoid mutating your project library if installation of one or more packages fails. |
| 223 | |
| 224 | - name: "install.jobs" |
| 225 | type: "integer[1]" |
| 226 | default: 4 |
| 227 | description: > |
| 228 | The number of packages to install concurrently during `install()` and |
| 229 | `restore()`. Packages within the same dependency wave are installed in |
| 230 | parallel using this many concurrent R CMD INSTALL processes. Set to `1L` |
| 231 | for sequential installation. |
| 232 | |
| 233 | - name: "install.verbose" |
| 234 | type: "logical[1]" |
| 235 | default: false |
| 236 | description: > |
| 237 | Be verbose when installing R packages from sources? When `TRUE`, renv will |
| 238 | stream any output generated during package build + installation to the console. |
| 239 | |
| 240 | - name: "locking.enabled" |
| 241 | type: "logical[1]" |
| 242 | default: false |
| 243 | description: > |
| 244 | Use interprocess locks when invoking methods which might mutate the project |
| 245 | library? Enable this to allow multiple processes to use the same renv |
| 246 | project, while minimizing risks relating to concurrent access to the |
| 247 | project library. Disable this if you encounter locking issues. Locks are stored |
| 248 | as files within the project at `renv/lock`; if you need to manually remove a |
| 249 | stale lock you can do so via `unlink("renv/lock", recursive = TRUE)`. |
| 250 | |
| 251 | - name: "mran.enabled" |
| 252 | type: "logical[1]" |
| 253 | default: false |
| 254 | description: > |
| 255 | DEPRECATED: MRAN is no longer maintained by Microsoft. |
| 256 | |
| 257 | - name: "pak.enabled" |
| 258 | type: "logical[1]" |
| 259 | default: false |
| 260 | description: > |
| 261 | Use the [pak](https://pak.r-lib.org/) package to install packages? |
| 262 | |
| 263 | - name: "ppm.enabled" |
| 264 | type: "logical[1]" |
| 265 | default: true |
| 266 | description: > |
| 267 | Boolean; enable [Posit Package Manager](https://packagemanager.posit.co/) |
| 268 | integration in renv projects? When `TRUE`, renv will attempt to transform |
| 269 | repository URLs used by PPM into binary URLs as appropriate for the |
| 270 | current Linux platform. Set this to `FALSE` if you'd like to continue using |
| 271 | source-only PPM URLs, or if you find that renv is improperly transforming |
| 272 | your repository URLs. You can still set and use PPM repositories with this |
| 273 | option disabled; it only controls whether renv tries to transform source |
| 274 | repository URLs into binary URLs on your behalf. |
| 275 | |
| 276 | - name: "ppm.default" |
| 277 | type: "logical[1]" |
| 278 | default: true |
| 279 | description: > |
| 280 | Boolean; should new projects use the |
| 281 | [Posit Public Package Manager](https://packagemanager.posit.co/) |
| 282 | instance by default? When `TRUE` (the default), projects initialized with |
| 283 | `renv::init()` will use the P3M instance if the `repos` R option has not |
| 284 | already been set by some other means (for example, in a startup `.Rprofile`). |
| 285 | |
| 286 | - name: "ppm.url" |
| 287 | type: "character[1]" |
| 288 | default: "https://packagemanager.posit.co/cran/latest" |
| 289 | description: > |
| 290 | The default PPM URL to be used for new renv projects. Defaults to the |
| 291 | CRAN mirror maintained by Posit at <https://packagemanager.posit.co/>. |
| 292 | This option can be changed if you'd like renv to use an alternate package manager instance. |
| 293 | |
| 294 | - name: "repos.override" |
| 295 | type: "character[*]" |
| 296 | default: ~ |
| 297 | description: > |
| 298 | Override the R package repositories used during [`restore()`]? Primarily |
| 299 | useful for deployment / continuous integration, where you might want to enforce |
| 300 | the usage of some set of repositories over what is defined in `renv.lock` or otherwise |
| 301 | set by the R session. |
| 302 | |
| 303 | This can be specified as a single repository URL (e.g., "https://cloud.r-project.org"), |
| 304 | or as multiple named repositories separated by semicolons using the format |
| 305 | NAME=URL (e.g., "CRAN=https://p3m.dev/cran/latest;R_UNIV=https://posit-dev.r-universe.dev"). |
| 306 | |
| 307 | - name: "rspm.enabled" |
| 308 | type: "logical[1]" |
| 309 | default: true |
| 310 | description: > |
| 311 | DEPRECATED: Please use `renv.config.ppm.enabled` instead. |
| 312 | |
| 313 | - name: "sandbox.enabled" |
| 314 | type: "logical[1]" |
| 315 | default: true |
| 316 | description: > |
| 317 | Enable sandboxing for renv projects? When active, renv will attempt |
| 318 | to sandbox the system library, preventing non-system packages installed in the |
| 319 | system library from becoming available in renv projects. (That is, only packages |
| 320 | with priority `"base"` or `"recommended"`, as reported by `installed.packages()`, |
| 321 | are made available.) |
| 322 | |
| 323 | Sandboxing is done by linking or copying system packages into a separate |
| 324 | library path, and then instructing R to use that library path as the system |
| 325 | library path. In some environments, this action can take a large amount of |
| 326 | time -- in such a case, you may want to disable the renv sandbox. |
| 327 | |
| 328 | - name: "shims.enabled" |
| 329 | type: "logical[1]" |
| 330 | default: true |
| 331 | description: > |
| 332 | Should renv shims be installed on package load? When enabled, renv |
| 333 | will install its own shims over the functions `install.packages()`, `update.packages()` |
| 334 | and `remove.packages()`, delegating these functions to [`renv::install()`], |
| 335 | [`renv::update()`] and [`renv::remove()`] as appropriate. |
| 336 | |
| 337 | - name: "snapshot.inference" |
| 338 | type: "logical[1]" |
| 339 | default: true |
| 340 | description: > |
| 341 | For packages which were installed from local sources, should renv try to infer the |
| 342 | package's remote from its DESCRIPTION file? When `TRUE`, renv will check and prompt |
| 343 | you to update the package's DESCRIPTION file if the remote source can be ascertained. |
| 344 | Currently, this is only implemented for packages hosted on GitHub. Note that this |
| 345 | check is only performed in interactive R sessions. |
| 346 | |
| 347 | - name: "snapshot.validate" |
| 348 | type: "logical[1]" |
| 349 | default: true |
| 350 | description: > |
| 351 | Validate \R package dependencies when calling snapshot? When `TRUE`, |
| 352 | renv will attempt to diagnose potential issues in the project library before |
| 353 | creating `renv.lock` -- for example, if a package installed in the project library |
| 354 | depends on a package which is not currently installed. |
| 355 | |
| 356 | - name: "startup.quiet" |
| 357 | type: "logical[1]" |
| 358 | default: ~ |
| 359 | description: > |
| 360 | Be quiet during startup? When set, renv will not display the typical |
| 361 | `Project <path> loaded. [renv <version>]` banner on startup. |
| 362 | |
| 363 | - name: "synchronized.check" |
| 364 | type: "logical[1]" |
| 365 | default: true |
| 366 | description: > |
| 367 | Check that the project library is synchronized with the lockfile on load? |
| 368 | |
| 369 | - name: "sysreqs.check" |
| 370 | type: "logical[1]" |
| 371 | default: true |
| 372 | description: > |
| 373 | Check whether the requisite system packages are installed during package |
| 374 | installation and restore? This feature uses the R System Requirements |
| 375 | database maintained at <https://github.com/rstudio/r-system-requirements>. |
| 376 | |
| 377 | - name: "updates.check" |
| 378 | type: "logical[1]" |
| 379 | default: false |
| 380 | description: > |
| 381 | Check for package updates when the session is initialized? This can |
| 382 | be useful if you'd like to ensure that your project lockfile remains up-to-date |
| 383 | with packages as they are released on CRAN. |
| 384 | |
| 385 | - name: "updates.parallel" |
| 386 | type: "*" |
| 387 | default: 2 |
| 388 | description: > |
| 389 | Check for package updates in parallel? This can be useful when a large |
| 390 | number of packages installed from non-CRAN remotes are installed, as these packages |
| 391 | can then be checked for updates in parallel. |
| 392 | |
| 393 | - name: "user.environ" |
| 394 | type: "logical[1]" |
| 395 | default: true |
| 396 | description: > |
| 397 | Load the user R environ (typically located at `~/.Renviron`) when renv |
| 398 | is loaded? |
| 399 | |
| 400 | - name: "user.library" |
| 401 | type: "logical[1]" |
| 402 | default: false |
| 403 | description: > |
| 404 | Include the system library on the library paths for your projects? Note |
| 405 | that this risks breaking project encapsulation and is not recommended for projects |
| 406 | which you intend to share or collaborate on with other users. See also the caveats |
| 407 | for the `renv.config.external.libraries` option. |
| 408 | |
| 409 | - name: "user.profile" |
| 410 | type: "logical[1]" |
| 411 | default: false |
| 412 | description: > |
| 413 | Load the user R profile (typically located at `~/.Rprofile`) when renv |
| 414 | is loaded? This is disabled by default, as running arbitrary code from |
| 415 | the the user `~/.Rprofile` could risk breaking project encapsulation. |
| 416 | If your goal is to set environment variables that are visible within all |
| 417 | renv projects, then placing those in `~/.Renviron` is often a better |
| 418 | choice. |