Skip to content

Commit b6877b2

Browse files
committed
solve tests (1)
1 parent 8920f5e commit b6877b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/coleo_validate.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ coleo_validate <- function(data, media_path = NULL) {
9696
#------------------------------------------------------------------------
9797
# Check that all NAs are NAs
9898
#------------------------------------------------------------------------
99-
is_char_na <- any(apply(data, 2, function(x) sapply(x, function(y) any(!is.list(y) && y == "NA"))), na.rm = TRUE) |> suppressWarnings()
99+
is_char_na <- any(apply(data, 2, function(x) sapply(x, function(y) any(!is.list(y)) && any(y == "NA"))), na.rm = TRUE) |> suppressWarnings()
100100
if(is_char_na) {
101101
data[data == "NA"] <- NA
102102
warning("--------------------------------------------------\nV\u00E9rifiez les champs sans valeurs. Ils devraient \u00E2tre NA, mais certains contiennent la valeur de 'NA' en charact\u00e8res.\n\n")

0 commit comments

Comments
 (0)