Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vnijs/shiny-site
Shiny app with dynamic rmarkdown
https://github.com/vnijs/shiny-site
Last synced: about 1 month ago
JSON representation
Shiny app with dynamic rmarkdown
- Host: GitHub
- URL: https://github.com/vnijs/shiny-site
- Owner: vnijs
- Created: 2015-06-11T06:03:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T04:57:32.000Z (over 4 years ago)
- Last Synced: 2024-10-14T18:05:20.119Z (about 2 months ago)
- Language: R
- Size: 54.7 KB
- Stars: 30
- Watchers: 4
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - vnijs/shiny-site - Shiny app with dynamic rmarkdown (R)
README
# Shiny-site
Dynamic rmarkdown files are great for one page apps. However, if you have multiple pages/tabs you may prefer to use Shiny with `navbarPage`. This is a proof of concept that you can render rmarkdown files using Knitr within a shiny app without having to break up the file into parts. It works by using Shiny's `renderUI` functionality and evaluating the rmarkdown file in the shinyServer environment.
See discussion on Shiny's GitHub page for background: https://github.com/rstudio/shiny/issues/859
I use this approach in a Shiny app that generates interactive quizzes: https://github.com/vnijs/quizr. More generally, it can be used to create multi-page websites that contain text and interactive elements using Shiny and Knitr.
## Alternatives
If you prefer `shinydashboard` there is a minimal working example in the `dashboard` branch of this github repository by Brandon Bertelsen
## Example
To see this example live go to: https://vnijs.shinyapps.io/shiny-site/