How to add a footer to a page generated using Shiny Flexdashboard

I have the following RMarkdown FlexDashboard document :

--- 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} ``` 

How can I put a footer on a page with the following content?

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

enter image description here

+5
source share
1 answer

You can put the HTML code of your footer in the footer.html file and include it after the body your flexible panel using after_body in your markdown:

 --- title: "Some title" runtime: shiny output: flexdashboard::flex_dashboard: orientation: columns vertical_layout: fill includes: after_body: footer.html --- 
+6
source

Source: https://habr.com/ru/post/1266957/


All Articles