Как использовать темы для R Markdown с github_document в качестве вывода? - PullRequest
2 голосов
/ 25 марта 2019

Мне сказали написать отчет в R Markdown со следующим шаблоном:

---
title: "Data Dictionary"
output: github_document
date: "Last Updated: `r format(Sys.time(), '%d, %B, %Y at %H:%M')`"
---

Я хочу использовать тему readthedown из пакета rmdformats, однако я не смог найти учебник о том, как это сделать правильно,У меня вопрос, возможно ли использовать тему с этим шаблоном?Любая помощь будет оценена!

1 Ответ

2 голосов
/ 25 марта 2019

Если вы уже установили пакет, remotes::install_github("juba/rmdformats"), просто передайте rmdformats::readthedown в output YAML:

---
title: "Untitled"
date: "Last Updated: `r format(Sys.time(), '%d, %B, %Y at %H:%M')`"
output: rmdformats::readthedown
---

```{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}
summary(cars)
```

## Including Plots

You can also embed plots, for example:

```{r pressure, echo=FALSE}
plot(pressure)
```

Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.

Output

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...