Skip to content

Commit

Permalink
update bs4 app structure
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Jan 25, 2025
1 parent 1b74184 commit df9c3e5
Show file tree
Hide file tree
Showing 3 changed files with 289 additions and 134 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ README.html
**/.DS_Store
**/*.dcf
docs
inst/virtual_patient_simulator/**/compiled_core.*o
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ source("navbar.R")
source("sidebar.R")
source("body.R")
source("footer.R")
source("dashboardControlbar.R")
source("ui.R")

#-------------------------------------------------------------------------
#
Expand All @@ -43,13 +45,13 @@ source("footer.R")
#-------------------------------------------------------------------------

# Load usefull scripts
source("dashboardControlbar.R")
source("cap_fixed_parameters.R")
source("calcium_phosphate_core.R") # core model
source("calc_change.R")
source("networks.R")
source("model_utils.R")
source("generate_slider_events.R")
source("server.R")

# set the current time zone to Zurich (for shiny server)
Sys.setenv(TZ = "Europe/Zurich")
Expand All @@ -59,7 +61,6 @@ so_name <- paste("compiled_core", .Platform$dynlib.ext, sep = "")
system("R CMD SHLIB compiled_core.c")
dyn.load(so_name)


#-------------------------------------------------------------------------
#
#
Expand All @@ -69,17 +70,22 @@ dyn.load(so_name)
#-------------------------------------------------------------------------
users_logs <- "www/users_data"
if (!dir.exists(users_logs)) {
dir.create(users_logs)
dir.create(users_logs, recursive = TRUE)
}

onStop(function() {
if (.Platform$OS.type == "unix") {
file.remove(so_name)
file.remove(gsub("so", "o", so_name))
} else if (.Platform$OS.type == "windows") {
file.remove(so_name)
file.remove(so_name)
}
})

# Bookmarking
#enableBookmarking(store = "server") # save to the disk

shinyApp(
ui = ui,
server = server
)
Loading

0 comments on commit df9c3e5

Please sign in to comment.