File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- # parsnip (development version)
2
-
3
- # parsnip 0.0.5.9000
1
+ # parsnip 0.1.1
4
2
5
3
## Other Changes
6
4
7
5
* S3 dispatch for ` tidy() ` was broken on R 4.0.
8
6
7
+ * The error message for missing packages was fixed (#289 and #292 )
8
+
9
9
# parsnip 0.0.5
10
10
11
11
## Fixes
Original file line number Diff line number Diff line change @@ -42,10 +42,12 @@ check_installs <- function(x) {
42
42
if (length(x $ method $ libs ) > 0 ) {
43
43
is_inst <- map_lgl(x $ method $ libs , is_installed )
44
44
if (any(! is_inst )) {
45
+ missing_pkg <- x $ method $ libs [! is_inst ]
46
+ missing_pkg <- paste0(missing_pkg , collapse = " , " )
45
47
rlang :: abort(
46
48
glue :: glue(
47
49
" This engine requires some package installs: " ,
48
- glue :: glue_collapse(glue :: glue(" '{x }'" ), sep = " , " )
50
+ glue :: glue_collapse(glue :: glue(" '{missing_pkg }'" ), sep = " , " )
49
51
)
50
52
)
51
53
}
You can’t perform that action at this time.
0 commit comments