Merge pull request #422 from kbrevoort/no_header
Fix issue #387
diff --git a/R/add_header_above.R b/R/add_header_above.R
index 409722b..93d5bda 100644
--- a/R/add_header_above.R
+++ b/R/add_header_above.R
@@ -62,6 +62,8 @@
escape = TRUE, line = TRUE, line_sep = 3,
extra_css = NULL, include_empty = FALSE,
border_left = FALSE, border_right = FALSE) {
+ if (is.null(header)) return(kable_input)
+
kable_format <- attr(kable_input, "format")
if (!kable_format %in% c("html", "latex")) {
warning("Please specify format in kable. kableExtra can customize either ",