如何在使用Shiny Flexdashboard生成的页面中添加页脚

nev*_*int 5 r r-markdown shiny flexdashboard

我有以下RMarkdown FlexDashboard文档:

---
title: "Some title"
runtime: shiny
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
---

```{r setup, include=FALSE}
library(flexdashboard)
```

Column {data-width=650}
-----------------------------------------------------------------------

### Some chart

```{r}
plot(faithful)
```

Column {data-width=650}
-----------------------------------------------------------------------

### Chart 2

```{r}
```   

### Chart 3

```{r}
```
Run Code Online (Sandbox Code Playgroud)

如何使用以下内容放置跨页面的页脚?

tags$div( HTML("<footer><small>&copy; Copyright 2017, MyCompany Co.,Ltd</small></footer>"))   
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

Nic*_*icE 8

您可以将页脚的HTML放在一个footer.html文件中,并body使用after_body降价功能将其包含在flexdashboard的后面:

---
title: "Some title"
runtime: shiny
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
    includes:
      after_body: footer.html
---
Run Code Online (Sandbox Code Playgroud)

  • 不需要将它放在`www`文件夹中,它必须与`.Rmd`文件位于同一文件夹中. (2认同)