1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 13:21:50 +02:00

(v1.3.0.9008) also tibble printing for ab

This commit is contained in:
2020-08-26 15:34:12 +02:00
parent 5e45fdcf2a
commit 9b8db57c65
44 changed files with 63 additions and 52 deletions

View File

@ -29,6 +29,8 @@
envir = asNamespace("AMR"))
# support for tibble headers (type_sum) and tibble columns content (pillar_shaft)
s3_register("pillar::pillar_shaft", "ab")
s3_register("tibble::type_sum", "ab")
s3_register("pillar::pillar_shaft", "mo")
s3_register("tibble::type_sum", "mo")
s3_register("pillar::pillar_shaft", "rsi")
@ -87,7 +89,7 @@ create_MO.old_lookup <- function() {
}
# copied from vctrs::s3_register
s3_register <- function (generic, class, method = NULL) {
s3_register <- function(generic, class, method = NULL) {
stopifnot(is.character(generic), length(generic) == 1)
stopifnot(is.character(class), length(class) == 1)
pieces <- strsplit(generic, "::")[[1]]