We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
knit_print
The following code fragments are emerging as common features of knit_print methods. helper functions may be appropriate.
knit_print.foo <- function(x, ..., label = c("patient", "patients")) { assert_character(label, min.len = 1, max.len = 2, any.missing = FALSE) if (length(label) == 1) { label[2] <- paste0(label[1], "s") } .... }
...
knit_print.foo <- function(x, ...) { param <- list(...) if (!("col.names" %in% names(param))) { param[["col.names"]] <- c("Lower", "Upper", <some label>) } if (!("caption" %in% names(param))) { param[["caption"]] <- <some caption> } x <- tidy(x) param[["x"]] <- x rv <- kableExtra::add_header_above( do.call(knitr::kable, param), c(<some label> = 2, " " = 1) ) ... }
The text was updated successfully, but these errors were encountered:
knit_print()
No branches or pull requests
The following code fragments are emerging as common features of
knit_print
methods. helper functions may be appropriate.Labels for counts of 1 and >1
Provide default values for
...
The text was updated successfully, but these errors were encountered: