[Help] Targets does not report correct error message when using tidyverse #1354
Closed
Jiefei-Wang
started this conversation in
General
Replies: 1 comment
-
Thanks, the reprex helped. Turns out the error comes from a problematic interaction between rlang::inform(message = "x", class = "vctrs_error_subscript_oob")
#> Error in `cnd_subscript_type()`:
#> ! Internal error: `cnd$subscript_type` must be `logical`, `numeric`, or `character`. I wrote a workaround in b8781d2. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Help
Description
This is a weird bug. When I have an error in my code(e.g. variable does not exist),
tar_make
will give a very misleading message. This only happens when I use tidyverse. I created a toy example to reproduce this. The true error is due to selecting a non-existent column in a data.frame usingselect(y)
, but the Last error message is irrelevant.Reproducible example here. Target version 1.8.0
tar_meta
gives correct error message, but in my real project it is not reliable and can be emptyThe progress file in the meta folder is good. it is always reliable in my real project,
tar_traceback
looks good, it is always reliable in my real projectIn my real project, the
Last error traceback
fromtar_make
is not correct, I have to usetar_traceback
instead, so I think there might be some other tidyverse functions that mess up with the traceback.Beta Was this translation helpful? Give feedback.
All reactions