/usr/share/doc/r-cran-tibble/tests/testthat/helper-type-sum.R is in r-cran-tibble 1.4.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | as_override_type_sum <- function(x) {
structure(x, class = "override_type_sum")
}
type_sum.override_type_sum <- function(x, ...) {
"SC"
}
registerS3method("type_sum", "override_type_sum", type_sum.override_type_sum, envir = asNamespace("pillar"))
`[.override_type_sum` <- function(x, ...) {
as_override_type_sum(NextMethod())
}
registerS3method("[", "override_type_sum", `[.override_type_sum`, envir = asNamespace("tibble"))
|