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 f5b7f3e commit 2a2f2c4Copy full SHA for 2a2f2c4
inst/tests/nafill.Rraw
@@ -112,8 +112,8 @@ x = 1:10
112
test(3.01, nafill(x, "locf", fill=0L), x)
113
test(3.02, setnafill(list(copy(x)), "locf", fill=0L), list(x))
114
test(3.03, setnafill(x, "locf"), error="in-place update is supported only for list")
115
-test(3.04, nafill(letters[1:5], fill=0), error="must be numeric type, or list/data.table")
116
-test(3.05, setnafill(list(letters[1:5]), fill=0), error="must be numeric type, or list/data.table")
+test(3.04, nafill(letters[1:5], fill=0), error="must be logical/numeric type, or list/data.table")
+test(3.05, setnafill(list(letters[1:5]), fill=0), error="must be logical/numeric type, or list/data.table")
117
test(3.06, nafill(x, fill=1:2), error="fill must be a vector of length 1.*fcoalesce")
118
test(3.07, nafill(x, "locf", fill=1:2), error="fill must be a vector of length 1.*x\\.$")
119
test(3.08, nafill(x, fill="asd"), x, warning=c("Coercing.*character.*integer","NAs introduced by coercion"))
0 commit comments