3
Folks I’m having trouble converting my generated html/css file into Rmarkdown.
You could help me?
Follow my code:
My file . Rmd
---
title: "Table"
output:
html_document:
css: "test.css"
---
```{r}
library(knitr)
data(iris)
kable(iris)
```
My file . css:
.main-container {
max-width: 1600px !important;
}
tr:nth-child(even) {background-color: #f2f2f2}
th {
background-color: #FF6319;
color: white;
font-size: 12px;
}
tbody {
font-size: 12px;
}
hr {
page-break-after: always;
}
When I turn the remote: rmarkdown::pandoc_convert("C:/Users/user/Downloads/myfile.html", output = "meuarquivo.pdf")
PDF is generated but not customized in . css
I also tried to use google Chrome for this and nothing.
What needs to be done to correct this?
Thank you very much, guys