We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c6991 commit 67d76edCopy full SHA for 67d76ed
R/utils.R
@@ -414,7 +414,9 @@ select_decorators <- function(decorators, scope) {
414
#' @keywords internal
415
normalize_decorators <- function(decorators) {
416
if (checkmate::test_list(decorators, "teal_transform_module")) {
417
- decorators_names <- setdiff(names(decorators), "")
+ decorators_names <- names(decorators)[!names(decorators) %in% ""]
418
+ # Above is equivalent to decorators_names <- setdiff(names(decorators), "")
419
+ # but can return non-unique values. Non-unique values are checked in assert_decorators.
420
if (length(decorators_names) == 0) {
421
list(default = decorators)
422
} else if (length(decorators_names) == length(decorators)) {
0 commit comments