|
1 | 1 | server <- function(input, output, session) {
|
2 | 2 | options(shiny.maxRequestSize=30*1024^2)
|
3 | 3 | app_dir <- getwd()
|
4 |
| - source(paste(app_dir, "/inst/app/scripts/helpers.R", sep = "")) |
| 4 | + source(paste(app_dir, "/multioviz/inst/app/scripts/helpers.R", sep = "")) |
5 | 5 |
|
6 | 6 | # initialize reactive values for ML model args
|
7 | 7 |
|
@@ -37,7 +37,7 @@ server <- function(input, output, session) {
|
37 | 37 | observe({
|
38 | 38 | if(demo){
|
39 | 39 | # if no arguments, run demo
|
40 |
| - source(paste(app_dir, "/inst/app/scripts/perturb.R", sep = "")) |
| 40 | + source(paste(app_dir, "/multioviz/inst/app/scripts/perturb.R", sep = "")) |
41 | 41 |
|
42 | 42 | # BANNs is run
|
43 | 43 | lst = runModel(reactivesModel$X, reactivesModel$y, reactivesModel$mask)
|
@@ -161,28 +161,28 @@ server <- function(input, output, session) {
|
161 | 161 |
|
162 | 162 | # UI stuff
|
163 | 163 | output$logo <- renderImage({
|
164 |
| - list(src = paste(app_dir, "/inst/app/www/logo.png", sep = ""), width = "20%", height = "35%", alt = "Alternate text") |
| 164 | + list(src = paste(app_dir, "/multioviz/inst/app/www/logo.png", sep = ""), width = "20%", height = "35%", alt = "Alternate text") |
165 | 165 | }, deleteFile = FALSE)
|
166 | 166 |
|
167 | 167 | output$colorbar1 <- renderImage({
|
168 |
| - list(src = paste(app_dir, "/inst/app/www/colorbar1.png", sep = ""), width = "100%", height = "25%", alt = "Alternate text") |
| 168 | + list(src = paste(app_dir, "/multioviz/inst/app/www/colorbar1.png", sep = ""), width = "100%", height = "25%", alt = "Alternate text") |
169 | 169 | }, deleteFile = FALSE)
|
170 | 170 |
|
171 | 171 | output$colorbar2 <- renderImage({
|
172 |
| - list(src = paste(app_dir, "/inst/app/www/colorbar2.png", sep = ""), width = "100%", height = "25%", alt = "Alternate text") |
| 172 | + list(src = paste(app_dir, "/multioviz/inst/app/www/colorbar2.png", sep = ""), width = "100%", height = "25%", alt = "Alternate text") |
173 | 173 | }, deleteFile = FALSE)
|
174 | 174 |
|
175 | 175 |
|
176 | 176 | observeEvent("", {
|
177 | 177 | showModal(modalDialog(
|
178 |
| - includeHTML(paste(app_dir, "/inst/app/www/intro_text.html", sep = "")), |
| 178 | + includeHTML(paste(app_dir, "/multioviz/inst/app/www/intro_text.html", sep = "")), |
179 | 179 | easyClose = TRUE,
|
180 | 180 | ))
|
181 | 181 | })
|
182 | 182 |
|
183 | 183 | observeEvent(input$quickstart, {
|
184 | 184 | showModal(modalDialog(
|
185 |
| - includeHTML(paste(app_dir, "/inst/app/www/intro_text2.html", sep = "")), |
| 185 | + includeHTML(paste(app_dir, "/multioviz/inst/app/www/intro_text2.html", sep = "")), |
186 | 186 | easyClose = TRUE,
|
187 | 187 | #footer = actionButton(inputId = "example_data_viz", label = "VIEW EXAMPLE DATA", icon = icon("info-circle"))
|
188 | 188 | ))
|
|
0 commit comments