Shiny app for exploring FunBioDiv datasets. You can run the shinyApp locally, or use it online.
First, you need to install this R-package with the following step:
## Install < remotes > package (if not already installed) ----
if (!requireNamespace(c("remotes"), quietly = TRUE)) {
install.packages(c("remotes"))
}
## Install < shinyFunBioDiv > from GitHub ----
remotes::install_github("FRBCesab/shinyFunBioDiv")
Then you can run the Shiny app locally with the function runShiny()
:
## load < shinyFunBioDiv> package
library(shinyFunBioDiv)
# run the Shiny app locally
runShiny()
To follow this procedure, you need to clone this repository in Github. Then follow the three steps below.
devtools::load_all()
source("analysis/01_prepare_data.R")
source("analysis/02_contingency.R")
# run the Shiny app locally
runShiny()
# deploy the shinyapp to online server
rsconnect::deployApp(
appDir = "app",
appFiles = rsconnect::listDeploymentFiles("app"),
appName = "shinyFunBioDiv",
appTitle = "FunBioDiv data explorer"
)