This repository hosts the code for the Shiny web app built for the rcrisp software package.
You can try out the app at the following URL: https://cforgaci.shinyapps.io/rcrisp/
The app is deployed on shinyapps.io. In order to setup the deployment:
-
Login to https://www.shinyapps.io/ (GitHub authentication can be used);
-
When logging in the first time, you will be prompted to choose a username;
-
Get a token and the corresponding secret to authorize deployment of the app: on shinyapps.io, select "Account" > "Tokens", then select a token (or create a new one), finally click on "Show" and "Show secret".
-
Save username, token, and secret as GitHub repository secrets: select "Settings" > "Secrets and variables" > "Actions", then create (or modify) the following repository secrets assigning them the corresponding values retrieved from shinyapps.io:
SHINYAPPS_USERNAME,SHINYAPPS_TOKEN,SHINYAPPS_SECRET. -
The app is deployed to shinyapps.io using GitHub actions via this workflow file. The action updates the deployment every time
app.Rorrenv.lockare modified on the "main" branch of this repository. It is also possible to manually trigger a new deployment from the "Actions" tab, by clicking onRun workflow. -
The app is deployed at a URL of the following form: https://USERNAME.shinyapps.io/APPNAME/ (the APPNAME is set in the workflow file). If the URL of the deployment is modified, please update the URL in the first section of this README file and the URL in the repository details.
Create an environment with all the required dependencies:
# install.packages("renv")
renv::init(bare = TRUE)
renv::restore()Start the app, listening on port 3838:
library(shiny)
runApp(port = 3838)Open browser on http://127.0.0.1:3838