add knitr::kable to export
diff --git a/NAMESPACE b/NAMESPACE
index e2e831f..51150dc 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -14,6 +14,7 @@
export(footnote_marker_number)
export(footnote_marker_symbol)
export(group_rows)
+export(kable)
export(kableExtra_latex_packages)
export(kable_as_image)
export(kable_styling)
@@ -33,6 +34,7 @@
importFrom(grDevices,col2rgb)
importFrom(knitr,asis_output)
importFrom(knitr,include_graphics)
+importFrom(knitr,kable)
importFrom(knitr,knit_meta_add)
importFrom(knitr,knit_print)
importFrom(magrittr,"%>%")
diff --git a/R/kableExtra-package.R b/R/kableExtra-package.R
index 82c12aa..b0a3fcc 100644
--- a/R/kableExtra-package.R
+++ b/R/kableExtra-package.R
@@ -61,7 +61,7 @@
#' xml_child xml_children xml_name xml_add_sibling xml_add_child xml_text
#' xml_remove write_xml xml_text<-
#' @importFrom rvest html_table
-#' @importFrom knitr knit_meta_add include_graphics knit_print asis_output
+#' @importFrom knitr knit_meta_add include_graphics knit_print asis_output kable
#' @importFrom rmarkdown latex_dependency html_dependency_bootstrap
#' html_dependency_jquery
#' @importFrom magrittr %>%
@@ -80,3 +80,6 @@
#' @export
magrittr::`%>%`
+
+#' @export
+knitr::kable
diff --git a/inst/.DS_Store b/inst/.DS_Store
index 81b5b9c..0e8b2b4 100644
--- a/inst/.DS_Store
+++ b/inst/.DS_Store
Binary files differ
diff --git a/man/add_header_above.Rd b/man/add_header_above.Rd
index 80239fe..a056225 100644
--- a/man/add_header_above.Rd
+++ b/man/add_header_above.Rd
@@ -5,7 +5,7 @@
\title{Add a header row on top of current header}
\usage{
add_header_above(kable_input, header = NULL, bold = FALSE, italic = FALSE,
- monospace = FALSE, escape = TRUE)
+ monospace = FALSE, escape = TRUE, line = TRUE)
}
\arguments{
\item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified}
@@ -25,6 +25,9 @@
\item{escape}{A T/F value showing whether special characters should be
escaped.}
+
+\item{line}{A T/F value to control whether a line will appear underneath the
+header}
}
\description{
Tables with multiple rows of header rows are extremely useful
diff --git a/man/group_rows.Rd b/man/group_rows.Rd
index 8e6db33..a9ada7e 100644
--- a/man/group_rows.Rd
+++ b/man/group_rows.Rd
@@ -7,7 +7,9 @@
group_rows(kable_input, group_label = NULL, start_row = NULL,
end_row = NULL, index = NULL,
label_row_css = "border-bottom: 1px solid;", latex_gap_space = "0.3em",
- escape = TRUE)
+ escape = TRUE, latex_align = "l", colnum = NULL, bold = T,
+ italic = F, hline_before = F, hline_after = F,
+ extra_latex_after = NULL)
}
\arguments{
\item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified}
@@ -34,6 +36,26 @@
\item{escape}{A T/F value showing whether special characters should be
escaped.}
+
+\item{latex_align}{Adjust justification of group_label in latex only. Value should be "c" for
+centered on row, "r" for right justification, or "l" for left justification. Default
+Value is "l" If using html, the alignment can be set by using the label_row_css
+parameter.}
+
+\item{colnum}{A numeric that determines how many columns the text should span.
+The default setting will have the text span the entire length.}
+
+\item{bold}{A T/F value to control whether the text should be bolded.}
+
+\item{italic}{A T/F value to control whether the text should to be emphasized.}
+
+\item{hline_before}{A T/F value that addes a horizontal line before the group_row label. Default
+value is False.}
+
+\item{hline_after}{A replicate of \code{hline.after} in xtable. It
+addes a hline after the row}
+
+\item{extra_latex_after}{Extra LaTeX text to be added after the row.}
}
\description{
Group a few rows in a table together under a label.
diff --git a/man/kable_as_image.Rd b/man/kable_as_image.Rd
index 113f848..4f287d6 100644
--- a/man/kable_as_image.Rd
+++ b/man/kable_as_image.Rd
@@ -5,7 +5,8 @@
\title{Convert a LaTeX table to an image and place it in a rmarkdown document}
\usage{
kable_as_image(kable_input, filename = NULL, file_format = "png",
- latex_header_includes = NULL, keep_pdf = FALSE, density = 300)
+ latex_header_includes = NULL, keep_pdf = FALSE, density = 300,
+ keep_tex = FALSE)
}
\arguments{
\item{kable_input}{Raw LaTeX code to generate a table. It doesn't have to
@@ -27,6 +28,9 @@
\item{density}{Resolution to read the PDF file. Default value is 300, which
should be sufficient in most cases.}
+
+\item{keep_tex}{A T/F option to control if the latex file that is initially created
+should be kept. Default is \code{FALSE}.}
}
\description{
This is a LaTeX-only function. This function will render the
diff --git a/man/kable_styling.Rd b/man/kable_styling.Rd
index 5bf0ce4..2d693ea 100644
--- a/man/kable_styling.Rd
+++ b/man/kable_styling.Rd
@@ -6,7 +6,7 @@
\usage{
kable_styling(kable_input, bootstrap_options = "basic",
latex_options = "basic", full_width = NULL, position = "center",
- font_size = NULL, ...)
+ font_size = NULL, row_label_position = "l", ...)
}
\arguments{
\item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified}
@@ -45,6 +45,10 @@
\item{font_size}{A numeric input for table font size}
+\item{row_label_position}{A character string determining the justification of the row
+labels in a table. Possible values inclued \code{l} for left, \code{c} for center, and \code{r} for
+right. The default value is \code{l} for left justifcation.}
+
\item{...}{extra options for HTML or LaTeX. See \code{details}.}
}
\description{
diff --git a/man/reexports.Rd b/man/reexports.Rd
index eb0cf3a..1473b2c 100644
--- a/man/reexports.Rd
+++ b/man/reexports.Rd
@@ -4,6 +4,8 @@
\name{reexports}
\alias{reexports}
\alias{\%>\%}
+\alias{reexports}
+\alias{kable}
\title{Objects exported from other packages}
\keyword{internal}
\description{
@@ -11,6 +13,8 @@
below to see their documentation.
\describe{
+ \item{knitr}{\code{\link[knitr]{kable}}}
+
\item{magrittr}{\code{\link[magrittr]{\%>\%}}}
}}
diff --git a/man/spec_color.Rd b/man/spec_color.Rd
index 476272a..539b623 100644
--- a/man/spec_color.Rd
+++ b/man/spec_color.Rd
@@ -22,7 +22,7 @@
\item{option}{A character string indicating the colormap option to use. Four
options are available: "magma" (or "A"), "inferno" (or "B"), "plasma" (or "C"),
-and "viridis" (or "D", the default option).}
+"viridis" (or "D", the default option) and "cividis" (or "E").}
\item{na_color}{color code for NA values}