Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/csoneson/shinylive_test
https://github.com/csoneson/shinylive_test
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/csoneson/shinylive_test
- Owner: csoneson
- Created: 2024-01-06T09:51:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-06T17:16:21.000Z (about 1 year ago)
- Last Synced: 2024-12-18T11:47:11.428Z (about 1 month ago)
- Language: R
- Homepage: https://csoneson.github.io/shinylive_test/
- Size: 28.3 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Example shinylive app
1. Create an app (here I started from the example app from https://shinylive.io/r/examples/#hello-shiny). Save it to (e.g.) `code/app.R`.
2. Install `shinylive` and `httpuv`:
```
BiocManager::install("posit-dev/r-shinylive")
BiocManager::install("rstudio/httpuv")
```
3. Export the app to a directory that can then be served using `httpuv`:
```
shinylive::export(appdir = "code", destdir = "docs")
```
4. Test locally:
```
httpuv::runStaticServer("docs")
```
5. Push (at least) the `docs` folder to GitHub.
6. Set up GitHub Pages in the GitHub repository to serve the `docs` folder from the `main` branch.
![](github-pages.png)
7. Navigate to the GitHub Pages website to use the app.### Resources
- [https://github.com/RamiKrispin/shinylive-r](https://github.com/RamiKrispin/shinylive-r)
- [https://github.com/posit-dev/shinylive](https://github.com/posit-dev/shinylive)
- [https://shinylive.io/r/examples/#hello-shiny](https://shinylive.io/r/examples/#hello-shiny)