mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 16:42:10 +02:00
unit test fail
This commit is contained in:
9
R/freq.R
9
R/freq.R
@ -543,7 +543,8 @@ diff.frequency_tbl <- function(x, y, ...) {
|
||||
#' @importFrom dplyr n_distinct
|
||||
#' @importFrom crayon bold silver
|
||||
#' @export
|
||||
print.frequency_tbl <- function(x, nmax = getOption("max.print.freq", default = 15), ...) {
|
||||
print.frequency_tbl <- function(x, nmax = getOption("max.print.freq", default = 15),
|
||||
markdown = !nteractive(), header = !markdown, ...) {
|
||||
|
||||
opt <- attr(x, 'opt')
|
||||
|
||||
@ -584,6 +585,12 @@ print.frequency_tbl <- function(x, nmax = getOption("max.print.freq", default =
|
||||
opt$tbl_format <- "pandoc"
|
||||
}
|
||||
}
|
||||
if (!missing(markdown)) {
|
||||
opt$tbl_format <- "markdown"
|
||||
}
|
||||
if (!missing(header)) {
|
||||
opt$header <- header
|
||||
}
|
||||
|
||||
if (trimws(title) == "") {
|
||||
title <- "Frequency table"
|
||||
|
Reference in New Issue
Block a user