Deploying custom shiny apps
deploy-custom-apps.Rmd
In some circumstances, you may want to deploy separate instances of
the shiny apps in ecoevoapps
rather than using the versions
that we have deployed onto shinyapps.io1. For example, you may
want to host an app on your own personal or institutional domain for
more control over access and usage, or you might want to customize the
user interface or computations conducted by the app itself.
The easiest way to deploy custom versions of the apps is through RStudio’s shinyapps.io. There is extensive documentation available for this service, including information about its Free tier, here.
Once you familiarize yourself with the instructions above, you can
clone the ecoevoapps
git repository onto your computer, or directly download the specific
shiny app you wish to deploy.
Note that if you are deploying a shiny app from the package
to shinyapps.io, you will need to first install the package
onto your computer from the ecoevoapps
mirror on GitHub
rather than the main development repository on GitLab.2 To do so, run the
following code:
# install the remotes package if it is not already available
if (!requireNamespace("remotes", quietly = TRUE))
install.packages('remotes')
# install ecoevoapps from github
remotes::install_github("gauravsk/ecoevoapps")
Then, you can customize the Shiny app file as you wish, and follow the procedures here to deploy the app to your shinyapps.io account.
Resources
If you are just getting started with using Shiny and/or RMarkdown documents, we recommend you read through Introduction to reactive documents guide. If you are already familiar with the basics and want a more detailed guide, we recommend the Mastering Shiny book.