Skip to content

Commit

Permalink
Merge pull request #36 from oxford-pharmacoepi/shiny_update2
Browse files Browse the repository at this point in the history
shiny update
  • Loading branch information
cecicampanile authored Feb 21, 2025
2 parents 7f3b66d + a14dcb1 commit 9b16b4e
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 435 deletions.
1 change: 1 addition & 0 deletions shiny/data/preprocess.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ filterValues <- defaultFilterValues(result, resultList)
save(data, filterValues, file = file.path(getwd(), "data", "shinyData.RData"))

rm(result, filterValues, resultList, data)

3 changes: 3 additions & 0 deletions shiny/global.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ library(yaml)

# preprocess data if it has not been done
fileData <- file.path(getwd(), "data", "shinyData.RData")


if (!file.exists(fileData)) {
source(file.path(getwd(), "data", "preprocess.R"))
}
Expand All @@ -33,5 +35,6 @@ if (!file.exists(fileData)) {
# load shiny data
load(fileData)


# source functions
source(file.path(getwd(), "functions.R"))
Loading

0 comments on commit 9b16b4e

Please sign in to comment.