Commit 7a137bc
authored
* feat: drop vendored renv, parse lockfiles with jsonlite (#94)
Removes the ~30,000-line vendored copy of renv 1.0.3 (in
inst/vendor/renv.R) and the bootstrap shell (R/renv.R, ~90 lines).
The full renv toolkit was embedded for one runtime use only:
renv$lockfile_read(). It is replaced by jsonlite::read_json() which
already lives in Imports and produces the same structure for the
fields dockerfiler reads (R$Version, names(Packages),
Packages$<name>$Version).
Public API change: the exported dockerfiler::renv data symbol is
removed. Documented as @doctype data in 0.2.5; users who relied on
it (unlikely outside of dockerfiler tests) should switch to renv::
directly.
Behaviour change in the missing(renv_version) + lockfile-without-renv
case: the previous fallback was the vendored 1.0.3 (frozen 2023-11),
which produced remotes::install_version("renv", version = "1.0.3")
in the generated Dockerfile. The new fallback is NULL, which now
emits install.packages("renv") and pulls the latest renv from the
configured repos. This aligns with the existing
renv_version = NULL behaviour and avoids shipping increasingly stale
renv builds.
Tests use renv::snapshot() via Suggests + skip_if_not_installed
guard. The "missing" assertion for the unpinned-renv lockfile now
expects install.packages("renv") instead of install_version 1.0.3.
Side effect: the inline-R in roxygen
(`r dockerfiler::renv$initialize();...`) goes away, eliminating the
attachment::att_amend_desc() regeneration trap on man/dock_from_renv.Rd.
Closes #94.
* fix(message): typo "the must" -> "the most up to date version"
Address self-review nit on PR #97. Pre-existing typo in the
`message("renv version = ", ...)` displayed when renv_version
is NULL. Now fires more often since the unpinned-renv-in-lockfile
path also lands here, so worth fixing.
* release: bump to 0.3.0
The vendored-renv removal is a breaking change (the exported
`dockerfiler::renv` symbol is dropped), so bump to 0.3.0 and split
the development NEWS section into Breaking changes / New features /
Bug fixes per tidyverse convention.
1 parent a18620d commit 7a137bc
9 files changed
Lines changed: 69 additions & 33601 deletions
File tree
- R
- inst/vendor
- man
- tests/testthat
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
4 | 37 | | |
5 | 38 | | |
6 | 39 | | |
| |||
10 | 43 | | |
11 | 44 | | |
12 | 45 | | |
13 | | - | |
| 46 | + | |
14 | 47 | | |
15 | 48 | | |
16 | 49 | | |
17 | 50 | | |
18 | 51 | | |
19 | 52 | | |
20 | | - | |
| 53 | + | |
21 | 54 | | |
22 | 55 | | |
23 | 56 | | |
24 | 57 | | |
25 | 58 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 59 | | |
44 | 60 | | |
45 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| |||
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 116 | + | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | | - | |
| 120 | + | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
This file was deleted.
0 commit comments