This has three files
- pollyHelper.R -> File which integrates the app with polly
- config.yml -> file which automates the deployment of shiny application to polly
- pollyrhelper_dev.txt -> file which keeps track of the updates of the above two files do that devloper get there an update if exists
These files will not work alone this has to be added to a shiny application to get it working
- Add the pollyHelper.R to the shiny application folder
- source(pollyHelper.R) in the ui.R file
- add the following files of code in the server. R file
pollyEventInit(session, input, output, variableList, v, list(onrestore = function() {
flagvariables$pathway_name_flag <<- TRUE
restoreFlag <<- TRUE
flagvariables$protein_name_flag <<- TRUE
}, onrestored = function() {
restoreFlag <<- FALSE
}
))
- Add uiInit() to the ui function to the ui.R
Set to go
Before pushing the code run pollyEnvSnapShot(FALSE)
this will make sure that other shiny application developer will get to know the update
while publishing to polly
- Sabu George
- Harshit Manek