shiny/testing_shiny.R

#Details of how to deploy the package at:
# http://shiny.rstudio.com/articles/shinyapps.html

#Details of other ways to host a Shiny App online:
# http://shiny.rstudio.com/tutorial/lesson7/

#Sign-in for hosting on shinyapps.io:
# http://www.shinyapps.io/

#Shiny cheat-sheet
# https://www.rstudio.com/wp-content/uploads/2016/01/shiny-cheatsheet.pdf

# Shiny examples
# https://github.com/rstudio/shiny-examples/tree/master/063-superzip-example

#renderUI examples
# https://www.youtube.com/watch?v=JUop-YfRAuw
# https://github.com/aagarw30/R-Shinyapp-Tutorial/blob/master/renderUI%20Example1/server.R

#Tutorial
# http://rstudio.github.io/shiny/tutorial/

#sliderInput animation example
# http://shiny.rstudio.com/gallery/image-output.html

#Button to turn off all check-boxes
# http://stackoverflow.com/questions/35043641/selecting-all-the-check-boxes-at-once-in-shiny

#Action buttons side-by-side
# http://stackoverflow.com/questions/20637248/shiny-4-small-textinput-boxes-side-by-side

# REAL VERSION -- DO NOT USE FOR TESTING
setwd( "C:/Users/James.Thorson/Desktop/Project_git/geostatistical_delta-GLMM/shiny" )

# DEVELOPMENT VERSION -- USE FOR TESTING
setwd( "C:/Users/James.Thorson/Desktop/Project_git/geostatistical_delta-GLMM/shiny/testing" )

# Copy files
  # file.copy( from="C:/Users/James.Thorson/Desktop/Project_git/geostatistical_delta-GLMM/examples/global_coverage.png", to="global_coverage.png", overwrite=TRUE )


##############
# Test locally
##############
library(shiny)
runApp()

##############
# Push to server
# Apparently, must ...
#  ... have all packages installed locally on the R version being used
#  .. currently working with Revolution Open R v3.2.2
##############
library(rsconnect)
deployApp()
nwfsc-assess/geostatistical_delta-GLMM documentation built on July 8, 2023, 4:49 a.m.