bump version & update doc
diff --git a/DESCRIPTION b/DESCRIPTION
index dd302f2..2c1b3b8 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
Package: kableExtra
Type: Package
Title: Construct Complex Table with 'kable' and Pipe Syntax
-Version: 0.5.0
+Version: 0.5.0.9000
Authors@R: c(
person('Hao', 'Zhu', email = 'haozhu233@gmail.com', role = c('aut', 'cre')),
person('Timothy', 'Tsai', role = 'ctb'),
diff --git a/docs/awesome_table_in_html.Rmd b/docs/awesome_table_in_html.Rmd
index dfd276d..96baeda 100644
--- a/docs/awesome_table_in_html.Rmd
+++ b/docs/awesome_table_in_html.Rmd
@@ -127,8 +127,8 @@
kable(text_tbl) %>%
kable_styling(full_width = F) %>%
- column_spec(1, bold = T) %>%
- column_spec(2, width = "30em")
+ column_spec(1, bold = T, border_right = T) %>%
+ column_spec(2, width = "30em", background = "yellow")
```
@@ -139,7 +139,7 @@
kable(dt) %>%
kable_styling("striped", full_width = F) %>%
column_spec(7, bold = T) %>%
- row_spec(5, bold = T)
+ row_spec(5, bold = T, color = "white", background = "#D7261E")
```
# Grouped Columns / Rows
diff --git a/docs/awesome_table_in_html.html b/docs/awesome_table_in_html.html
index eef4a5a..15e4da9 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-09-04" />
+<meta name="date" content="2017-09-05" />
<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-09-04</em></h4>
+<h4 class="date"><em>2017-09-05</em></h4>
</div>
@@ -1603,8 +1603,8 @@
kable(text_tbl) %>%
kable_styling(full_width = F) %>%
- column_spec(1, bold = T) %>%
- column_spec(2, width = "30em")</code></pre>
+ column_spec(1, bold = T, border_right = T) %>%
+ column_spec(2, width = "30em", background = "yellow")</code></pre>
<table class="table" style="width: auto !important; margin-left: auto; margin-right: auto;">
<thead>
<tr>
@@ -1618,26 +1618,26 @@
</thead>
<tbody>
<tr>
-<td style="text-align:left;font-weight: bold;">
+<td style="text-align:left;font-weight: bold;border-right:1px solid;">
Item 1
</td>
-<td style="text-align:left;width: 30em; ">
+<td style="text-align:left;width: 30em; background-color: yellow;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vehicula tempor ex. Morbi malesuada sagittis turpis, at venenatis nisl luctus a.
</td>
</tr>
<tr>
-<td style="text-align:left;font-weight: bold;">
+<td style="text-align:left;font-weight: bold;border-right:1px solid;">
Item 2
</td>
-<td style="text-align:left;width: 30em; ">
+<td style="text-align:left;width: 30em; background-color: yellow;">
In eu urna at magna luctus rhoncus quis in nisl. Fusce in velit varius, posuere risus et, cursus augue. Duis eleifend aliquam ante, a aliquet ex tincidunt in.
</td>
</tr>
<tr>
-<td style="text-align:left;font-weight: bold;">
+<td style="text-align:left;font-weight: bold;border-right:1px solid;">
Item 3
</td>
-<td style="text-align:left;width: 30em; ">
+<td style="text-align:left;width: 30em; background-color: yellow;">
Vivamus venenatis egestas eros ut tempus. Vivamus id est nisi. Aliquam molestie erat et sollicitudin venenatis. In ac lacus at velit scelerisque mattis.
</td>
</tr>
@@ -1650,7 +1650,7 @@
<pre class="r"><code>kable(dt) %>%
kable_styling("striped", full_width = F) %>%
column_spec(7, bold = T) %>%
- row_spec(5, bold = T)</code></pre>
+ row_spec(5, bold = T, color = "white", background = "#D7261E")</code></pre>
<table class="table table-striped" style="width: auto !important; margin-left: auto; margin-right: auto;">
<thead>
<tr>
@@ -1770,25 +1770,25 @@
</td>
</tr>
<tr>
-<td style="text-align:left;font-weight: bold;">
+<td style="text-align:left;font-weight: bold;color: white;background-color: #D7261E;">
Hornet Sportabout
</td>
-<td style="text-align:right;font-weight: bold;">
+<td style="text-align:right;font-weight: bold;color: white;background-color: #D7261E;">
18.7
</td>
-<td style="text-align:right;font-weight: bold;">
+<td style="text-align:right;font-weight: bold;color: white;background-color: #D7261E;">
8
</td>
-<td style="text-align:right;font-weight: bold;">
+<td style="text-align:right;font-weight: bold;color: white;background-color: #D7261E;">
360
</td>
-<td style="text-align:right;font-weight: bold;">
+<td style="text-align:right;font-weight: bold;color: white;background-color: #D7261E;">
175
</td>
-<td style="text-align:right;font-weight: bold;">
+<td style="text-align:right;font-weight: bold;color: white;background-color: #D7261E;">
3.15
</td>
-<td style="text-align:right;font-weight: bold;font-weight: bold;">
+<td style="text-align:right;font-weight: bold;font-weight: bold;color: white;background-color: #D7261E;">
3.440
</td>
</tr>
@@ -2779,7 +2779,7 @@
1
</td>
<td style="text-align:center;">
-1
+0
</td>
</tr>
<tr>
@@ -2787,7 +2787,7 @@
2
</td>
<td style="text-align:center;">
-1
+0
</td>
</tr>
<tr>
@@ -2811,7 +2811,7 @@
5
</td>
<td style="text-align:center;">
-0
+1
</td>
</tr>
<tr>
@@ -2827,7 +2827,7 @@
7
</td>
<td style="text-align:center;">
-0
+1
</td>
</tr>
<tr>
@@ -2838,7 +2838,7 @@
8
</td>
<td style="text-align:center;">
-0
+1
</td>
</tr>
<tr>
@@ -2846,7 +2846,7 @@
9
</td>
<td style="text-align:center;">
-1
+0
</td>
</tr>
<tr>
@@ -2854,7 +2854,7 @@
10
</td>
<td style="text-align:center;">
-0
+1
</td>
</tr>
<tr>
@@ -2876,7 +2876,7 @@
12
</td>
<td style="text-align:center;">
-1
+0
</td>
</tr>
<tr>
@@ -2895,7 +2895,7 @@
14
</td>
<td style="text-align:center;">
-1
+0
</td>
</tr>
<tr>
diff --git a/docs/awesome_table_in_pdf.Rmd b/docs/awesome_table_in_pdf.Rmd
index ab786dd..3848865 100644
--- a/docs/awesome_table_in_pdf.Rmd
+++ b/docs/awesome_table_in_pdf.Rmd
@@ -181,7 +181,7 @@
kable(text_tbl, format = "latex", booktabs = T) %>%
kable_styling(full_width = F) %>%
- column_spec(1, bold = T) %>%
+ column_spec(1, bold = T, color = "red") %>%
column_spec(2, width = "30em")
```
@@ -191,8 +191,8 @@
```{r}
kable(dt, format = "latex", booktabs = T) %>%
kable_styling("striped", full_width = F) %>%
- column_spec(7, bold = T) %>%
- row_spec(5, bold = T)
+ column_spec(7, border_left = T) %>%
+ row_spec(5, bold = T, color = "white", background = "black")
```
# Grouped Columns / Rows
diff --git a/docs/awesome_table_in_pdf.pdf b/docs/awesome_table_in_pdf.pdf
index 04d9bd6..74da12b 100644
--- a/docs/awesome_table_in_pdf.pdf
+++ b/docs/awesome_table_in_pdf.pdf
Binary files differ