Commit 2355f22
authored
Fail early when renv packages are not synchronized after restore in CI (#14424)
When renv::restore() encounters network errors (e.g. package manager
returning HTTP errors), it can complete without failing even though some
packages were not properly installed. Downstream steps then fail with
cryptic errors like missing package functions.
Add renv::status() after restore and exit with status 1 if the library
is not synchronized with the lockfile, surfacing the failure at the
right point rather than later in the test run.1 parent b8468bf commit 2355f22
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
| |||
0 commit comments