blob: 374cc90180ee826c761f9d98df0e38de52b575a6 [file] [log] [blame]
---
title: "Untitled"
output: pdf_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## R Markdown
This 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>.
When 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:
```{r cars}
library(knitr)
library(kableExtra)
library(xml2)
dt <- data.frame(
row_id = c("abb", "xxx", "aaa"),
contents = c(
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vehicula tempor ex. Morbi malesuada sagittis turpis, at venenatis nisl luctus a. ",
"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.",
"Vivamus venenatis egestas eros ut tempus. Vivamus id est nisi. "
),
contents2 = c(
"Lorem ipsum dolor",
"In eu urna ",
"Vivamus venenatis"
),
contents3 = c(
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vehicula tempor ex. Morbi malesuada sagittis turpis, at venenatis nisl luctus a. ",
"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. ",
"Vivamus venenatis egestas eros ut tempus. Vivamus id est nisi. Aliquam molestie erat et sollicitudin venenatis. In ac lacus at velit scelerisque mattis. "
)
)
kable(dt, "latex", booktabs = T) %>%
kable_styling(latex_options = "scale_down") %>%
column_spec(2, "30em", bold = T) %>%
column_spec(4, "3cm", italic = T) %>%
group_rows("Group1", 1, 2)
```