Skip to content

Commit d320329

Browse files
authored
Merge pull request #78 from HenningLorenzen-ext-bayer/fix/repl-native-pipe
Replace native pipes
2 parents 44919b7 + a58368b commit d320329

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

R/dock_from_renv.R

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,27 +137,32 @@ dock_from_renv <- function(
137137
}
138138
)
139139

140-
141-
pkg_sysreqs <- attempt::map_try_catch(
140+
141+
pkg_sysreqs <- unlist(attempt::map_try_catch(
142142
pkg_os,
143143
function(x) {
144-
do.call(
145-
pkg_sysreqs_mem,
146-
x
147-
) |>
148-
pluck("packages") |>
149-
keep_at("system_packages")
144+
keep_at(
145+
pluck(
146+
do.call(pkg_sysreqs_mem, x),
147+
"packages"
148+
),
149+
"system_packages"
150+
)
150151
},
151152
.e = ~ character(0)
152-
) |>
153-
unlist()
153+
))
154154

155155

156156

157157

158158

159-
pkg_installs <- unique(pkg_sysreqs) |>
160-
lapply( function(.x) {paste0(install_cmd, " ", .x)})
159+
pkg_installs <-
160+
lapply(
161+
X = unique(pkg_sysreqs),
162+
FUN = function(.x) {
163+
paste0(install_cmd, " ", .x)
164+
}
165+
)
161166

162167
if (length(unlist(pkg_installs)) == 0) {
163168
cat_bullet(

0 commit comments

Comments
 (0)