Skip to content

Commit

Permalink
add format.report_table
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Dec 10, 2020
1 parent 28628fc commit 5fdc529
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ S3method(as.report_table,default)
S3method(as.report_table,report)
S3method(as.report_text,default)
S3method(as.report_text,report)
S3method(format,report_table)
S3method(print,report)
S3method(print,report_effectsize)
S3method(print,report_info)
Expand Down
7 changes: 6 additions & 1 deletion R/report_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ summary.report_table <- function(object, ...) {
}


#' @export
format.report_table <- function(x, ...) {
insight::parameters_table(x, ...)
}

#' @export
print.report_table <- function(x, ...) {
cat(insight::format_table(parameters::parameters_table(x, ...), ...))
cat(insight::format_table(format(x, ...), ...))
}

0 comments on commit 5fdc529

Please sign in to comment.