Test renv restore
projr_renv_test.Rd
Tests renv::restore()
without using the cache in a clean, temporary environment.
Automatically creates a temporary project directory, initializes renv
,
copies required files, disables the cache via .Rprofile
, and then performs renv::restore()
.
Afterwards, it deletes the first library path where renv
restored packages.
Note:
To ensure isolation, the test runs in a directory that is completely separate
from the parent project and executes Rscript
with the --vanilla
option.
The --vanilla
flag seems essential to prevent the project
renv
settings from being affected by testing.
Value
TRUE
if renv::restore()
succeeds, FALSE
otherwise.