update documentation
diff --git a/R/kable_styling.R b/R/kable_styling.R
index 1e52b03..73b9267 100644
--- a/R/kable_styling.R
+++ b/R/kable_styling.R
@@ -282,7 +282,6 @@
}
styling_latex_HOLD_position <- function(x) {
- usepackage_latex("float")
sub("\\\\begin\\{table\\}", "\\\\begin\\{table\\}[H]", x)
}
diff --git a/R/zzz.R b/R/zzz.R
index 78d4020..226ece6 100644
--- a/R/zzz.R
+++ b/R/zzz.R
@@ -1,12 +1,16 @@
.onLoad <- function(libname = find.package("kableExtra"), pkgname = "kableExtra") {
- usepackage_latex("booktabs")
- usepackage_latex("longtable")
- usepackage_latex("array")
- usepackage_latex("multirow")
- usepackage_latex("xcolor", "table")
- usepackage_latex("wrapfig")
- usepackage_latex("colortbl")
- usepackage_latex("pdflscape")
- usepackage_latex("tabu")
- usepackage_latex("threeparttable")
+ load_packages <- getOption("kableExtra.latex.load_packages", default = TRUE)
+ if (load_packages) {
+ usepackage_latex("booktabs")
+ usepackage_latex("longtable")
+ usepackage_latex("array")
+ usepackage_latex("multirow")
+ usepackage_latex("xcolor", "table")
+ usepackage_latex("wrapfig")
+ usepackage_latex("float")
+ usepackage_latex("colortbl")
+ usepackage_latex("pdflscape")
+ usepackage_latex("tabu")
+ usepackage_latex("threeparttable")
+ }
}