File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11linters: linters_with_defaults(
22 line_length_linter = line_length_linter(120L),
33 any_is_na_linter(),
4+ any_duplicated_linter(),
45 outer_negation_linter(),
56 nzchar_linter(),
67 fixed_regex_linter(),
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ as_Seurat <- function(
211211 } else if (! is.null(adata $ X )) {
212212 layers_mapping [[" X" ]] <- NA
213213 }
214- if (any(duplicated( names(layers_mapping ))) ) {
214+ if (anyDuplicated( names(layers_mapping )) > 0 ) {
215215 cli_abort(
216216 " {.arg layers_mapping} or {.arg x_mapping} must not contain any duplicate names" ,
217217 " i" = " Found duplicate names: {.val {names(layers_mapping)[duplicated(names(layers_mapping))]}}"
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ as_SingleCellExperiment <- function(
216216 } else if (! is.null(adata $ X )) {
217217 assays_mapping [[" X" ]] <- NA
218218 }
219- if (any(duplicated( names(assays_mapping ))) ) {
219+ if (anyDuplicated( names(assays_mapping )) > 0 ) {
220220 cli_abort(
221221 " {.arg assays_mapping} or {.arg x_mapping} must not contain any duplicate names" ,
222222 " i" = " Found duplicate names: {.val {names(assays_mapping)[duplicated(names(assays_mapping))]}}"
You can’t perform that action at this time.
0 commit comments