add cran install to vignette + doc site. Remove html table contents for now since rvest requires library(methods) to be loaded
diff --git a/R/magic_mirror.R b/R/magic_mirror.R
index eeeb896..2283a47 100644
--- a/R/magic_mirror.R
+++ b/R/magic_mirror.R
@@ -83,7 +83,7 @@
# Caption
kable_info$caption <- xml_text(xml_child(kable_xml, "caption"))
# Contents
- kable_info$contents <- html_table(read_html(as.character(kable_input)))[[1]]
+ # kable_info$contents <- html_table(read_html(as.character(kable_input)))[[1]]
# colnames
kable_info$colnames <- lapply(xml_children(xml_child(kable_xml, "thead")),
xml_children)
diff --git a/docs/awesome_table_in_html.Rmd b/docs/awesome_table_in_html.Rmd
index 496d37f..bf8e058 100644
--- a/docs/awesome_table_in_html.Rmd
+++ b/docs/awesome_table_in_html.Rmd
@@ -23,6 +23,8 @@
# install.packages("devtools")
devtools::install_github("rstudio/rmarkdown")
+install.packages("kableExtra")
+
# For dev version
devtools::install_github("haozhu233/kableExtra")
```
diff --git a/docs/awesome_table_in_html.html b/docs/awesome_table_in_html.html
index 6824f4f..2a81ee1 100644
--- a/docs/awesome_table_in_html.html
+++ b/docs/awesome_table_in_html.html
@@ -11,7 +11,7 @@
<meta name="author" content="Hao Zhu" />
-<meta name="date" content="2017-03-02" />
+<meta name="date" content="2017-03-04" />
<title>Create Awesome HTML Table with knitr::kable and kableExtra</title>
@@ -217,7 +217,7 @@
<h1 class="title toc-ignore">Create Awesome HTML Table with knitr::kable and kableExtra</h1>
<h4 class="author"><em>Hao Zhu</em></h4>
-<h4 class="date"><em>2017-03-02</em></h4>
+<h4 class="date"><em>2017-03-04</em></h4>
</div>
@@ -232,6 +232,8 @@
<pre class="r"><code># install.packages("devtools")
devtools::install_github("rstudio/rmarkdown")
+install.packages("kableExtra")
+
# For dev version
devtools::install_github("haozhu233/kableExtra")</code></pre>
</div>
diff --git a/docs/awesome_table_in_pdf.Rmd b/docs/awesome_table_in_pdf.Rmd
index 46a78df..9426d61 100644
--- a/docs/awesome_table_in_pdf.Rmd
+++ b/docs/awesome_table_in_pdf.Rmd
@@ -23,6 +23,8 @@
# install.packages("devtools")
devtools::install_github("rstudio/rmarkdown")
+install.packages("kableExtra")
+
# For dev version
devtools::install_github("haozhu233/kableExtra")
```
diff --git a/docs/awesome_table_in_pdf.pdf b/docs/awesome_table_in_pdf.pdf
index 5f72506..6862230 100644
--- a/docs/awesome_table_in_pdf.pdf
+++ b/docs/awesome_table_in_pdf.pdf
Binary files differ
diff --git a/vignettes/awesome_table_in_html.Rmd b/vignettes/awesome_table_in_html.Rmd
index 85d15a8..c217125 100644
--- a/vignettes/awesome_table_in_html.Rmd
+++ b/vignettes/awesome_table_in_html.Rmd
@@ -25,6 +25,8 @@
# install.packages("devtools")
devtools::install_github("rstudio/rmarkdown")
+install.packages("kableExtra")
+
# For dev version
devtools::install_github("haozhu233/kableExtra")
```
@@ -46,7 +48,8 @@
## Basic HTML Table
Basic HTML output of `kable` looks very crude. To the end, it's just a plain HTML table without any love from css.
```{r}
-kable(dt)
+kable(dt, caption = "clust") %>%
+ kable_styling(full_width = F)
```
## Apply Bootstrap