update documentation
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")
+ }
}