-
renvnow infers a dependency on theraggpackage when theragg_pngdevice
is used in R Markdown / Quarto documents, for documents using the code
knitr::opts_chunk$set(dev = "ragg_png"). (#1985) -
renvnow automatically generates a lockfile when loading a project containing
amanifest.jsonfile (typical for application bundles published to Posit Connect).
(#1980, @toph-allen) -
renv::install()now errs if an incompatibletypeargument is provided. -
renv::checkout()now also checks out the version ofrenvavailable
and associated with the requested snapshot date. (#1966) -
Fixed an issue where
renv::hydrate()did not hydrate packages which
were also listed as dependencies within a project'sDESCRIPTIONfile.
(#1970) -
Fixed an issue where
renv::checkout()omitted some fields from lockfile
records when usingactions = c("snapshot", "restore"). (#1969) -
renvgains the functionrenv::retrieve(), which can be used to download
packages without installing them. This is primarily useful in CI / CD scenarios,
where you might want to download packages in a single stage before attempting
to install / restore them. (#1965) -
renvnow preservesRemotefields present on packages installed from
public package repositories (e.g. https://r-universe.dev/). (#1961) -
Fixed an issue where
renv::load()could fail to load an alternate project
whenoptions(renv.config.autoloader.enabled = FALSE)was set. (#1959) -
renvnow emits clickable hyperlinks for runnable code snippets and help,
for front-ends which support theide:runandide:helpANSI escapes. -
renv::init(bioc = "<version>")now prompts the user in interactive sessions
when requesting a version of Bioconductor which is not compatible with the
current version of R. (#1943) -
renv::restore()gains thetransactionalargument, which can be
used to control whetherrenvwill allow successfully-installed
packages remain in the project library even if a package fails
to install during a later step. (#1109) -
renvnow infers a dependency on thexml2package for projects
using thetestthat::JunitReporterfor tests. (#1936) -
Fixed an issue where
renv::dependencies()could emit a warning
when attempting to parse chunks using chunk options like
#| eval: c(1, 2). (#1906) -
renv::install()now properly delegates thetypeandrebuild
arguments topakwhenoptions(renv.config.pak.enabled = TRUE)
is set. (#1924) -
renvnow infers a dependency on thesvglitepackage if it detects
calls of the formggsave(filename = "path.svg"). (#1930) -
renvnow supports setting of GitHub authentication credentials via
any ofGITHUB_TOKEN,GITHUB_PAT, andGH_TOKEN. (#1937) -
renvnow also passes any custom headers available to
utils::available.packages()during bootstrap. (#1942) -
Fixed an issue where
renvcould fail during installation of packages
stored within repository sub-directories, if that repository also
contained a top-level DESCRIPTION file. (#1941) -
renvnow normalizes lockfile entries for Bioconductor packages installed
viapak::pkg_install(), to help prevent spurious diffs being produced
viarenv::status(). (#1920) -
renv::install()now respects thepromptparameter whenpakis enabled,
as viaoptions(renv.config.pak.enabled = TRUE). (#1907) -
Fixed an issue with
renv'spakintegration whererenvcould install the
wrong version of a GitHub package during restore if
options(renv.config.pak.enabled = TRUE)was set. (#1883) -
renvno longer interacts with the user during autoloading, which coincides
with R startup. If the IDE offers a session init hook (RStudio does),
loading is deferred until startup is complete and interaction is possible.
Otherwise, any suggested renv actions, such asrenv::restore(), are emitted
as a message for the user to act on. (#1879, #1915). -
Fixed an issue where installation of packages from local sources, as via
install("<package>", repos = NULL, type = "source"), could fail. (#1880) -
A new function,
renv::lockfile_validate(), can be used to validate yourrenv.lock
against a default or custom schema. (#1889)