blob: 3360c47bcc6d1496e3b480094439fa34bd67a7cd [file] [log] [blame]
Hao Zhubff01912017-05-23 18:05:00 -04001---
2title: "Untitled"
3output: html_document
4---
5
6```{r setup, include=FALSE}
7knitr::opts_chunk$set(echo = TRUE)
8```
9
10## R Markdown
11
12This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
13
14When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
15
16```{r cars}
17library(knitr)
18library(kableExtra)
19library(xml2)
20
21dt <- data.frame(
Hao Zhuf13a35e2017-05-24 00:55:43 -040022 row_id = c("abb", "xxx", "aaa"),
Hao Zhubff01912017-05-23 18:05:00 -040023 contents = c(
Hao Zhuf13a35e2017-05-24 00:55:43 -040024 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vehicula tempor ex. Morbi malesuada sagittis turpis, at venenatis nisl luctus a. ",
25 "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.",
26 "Vivamus venenatis egestas eros ut tempus. Vivamus id est nisi. "
Hao Zhubff01912017-05-23 18:05:00 -040027 ),
28 contents2 = c(
29 "Lorem ipsum dolor",
30 "In eu urna ",
31 "Vivamus venenatis"
32 ),
33 contents3 = c(
Hao Zhuf13a35e2017-05-24 00:55:43 -040034 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vehicula tempor ex. Morbi malesuada sagittis turpis, at venenatis nisl luctus a. ",
35 "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. ",
36 "Vivamus venenatis egestas eros ut tempus. Vivamus id est nisi. Aliquam molestie erat et sollicitudin venenatis. In ac lacus at velit scelerisque mattis. "
Hao Zhubff01912017-05-23 18:05:00 -040037 )
38)
39
40kable(dt, "html") %>%
41 kable_styling() %>%
42 column_spec(2, "5cm", bold = T) %>%
43 column_spec(4, "3cm", italic = T)
44```
45