You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: inst/tests/tests.Rraw
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13725,6 +13725,9 @@ test(1967.622, setnames(x, 1:2, c("a",NA)), error = "NA in 'new' at positions [2
13725
13725
test(1967.63, setcolorder(x, c(1, 1)), error = 'Item 2 of order (1) is either NA, out of range [1,2], or is duplicated. The new order must be a strict permutation of 1:n')
13726
13726
test(1967.64, setcolorder(x, 1+3i), error = 'must be character or numeric')
13727
13727
test(1967.65, setcolorder(x, 300), error = 'specify non existing column*.*300')
13728
+
d = data.table(1:2, 2:3)
13729
+
setattr(d, "names", NULL)
13730
+
test(1967.651, setcolorder(d, 2:1), error="dt passed to setcolorder has no names")
0 commit comments