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 b19acf1 commit 8fd7789Copy full SHA for 8fd7789
tests/autoprint.R
@@ -58,7 +58,7 @@ local({
58
59
# child class of data.table doesn't induce unintended print, #3029
60
dt = data.table(x = 1)
61
-class(dt) = c("foo", "data.table", "data.frame")
+setattr(dt, "class", c("foo", "data.table", "data.frame"))
62
print.foo = function(x, ...) {
63
NextMethod("print")
64
}
0 commit comments