R/print_mmtable.R

Defines functions knit_print.mmtable print.mmtable

Documented in knit_print.mmtable print.mmtable

#' Print an mmtable object
#'
#' @param x an mmtable
#' @param ... other things
#' @export
#' @S3method  print mmtable
#' @importFrom magrittr %>%

 print.mmtable  <-function(x, ...){

   html <- apply_formats(x) %>% attr("html")

   htmltools::html_print(html)

   html %>% knitr::asis_output()

 }



#' Print an mmtable object
#'
#' @param x an mmtable
#' @param ... other things
#' @export
#' @S3method  print mmtable
#' @importFrom magrittr %>%
 knit_print.mmtable  <-function(x, ...){

   apply_formats(x) %>% attr("html") %>% knitr::asis_output()

 }
ianmoran11/mmtable2 documentation built on Dec. 20, 2021, 5:58 p.m.