Skip to content

Commit 33b5072

Browse files
stemangiolaCopilot
andauthored
Update R/validation.R use seq_len
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b91a066 commit 33b5072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/validation.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ check_sample_consistency_of_factors = function(.data, my_formula, sample, cell_g
240240
for(sample_name in unique(inconsistent_samples |> pull(!!.sample))) {
241241
sample_issues = inconsistent_samples |> filter(!!.sample == sample_name)
242242
error_msg = paste0(error_msg, "\nSample: ", sample_name, "\n")
243-
for(i in 1:nrow(sample_issues)) {
243+
for(i in seq_len(nrow(sample_issues))) {
244244
row = sample_issues[i, ]
245245
error_msg = paste0(error_msg, " - ", row$factor_name, ": ", row$unique_values, "\n")
246246
}

0 commit comments

Comments
 (0)