Closed github-actions[bot] closed 2 months ago
@lanawwas add_dummy_from_set()
to be removed
Related open issues for the same function:
Related open issues for the same function:
Related open issues for the same function:
Related open issues for the same function:
Related open issues for the same function:
Related open issues for the same function:
Related open issues for the same function:
Context: 2 6 | add_dummy_from_set Type: Error Description: add_dummy_from_set handles empty set Tested Function: 2 6 | add_dummy_from_set Test File: 'test-add_dummy_from_set.R Failed at Line: 37
Details: <dplyr:::mutate_error/rlang_error/error/condition> Error in
dplyr::mutate(df,
:=("{dummy_name}", dplyr::case_when(is.na({ { col } }) ~ NA_real_, stringr::str_detect({ { col } }, pattern) ~ 1, !stringr::str_detect({ { col } }, pattern) ~ 0, .default = NA_real_)))
: ℹ In argument:dummy_empty = dplyr::case_when(...)
. Caused by error indplyr::case_when()
: ! Failed to evaluate the left-hand side of formula 2. Caused by error instringr::str_detect()
: !pattern
can't be the empty string (""
). Backtrace: ▆<fn>
(<rlng_rrr>
)<fn>
(<rlng_rrr>
)