Skip to content

Commit 763366c

Browse files
author
Nick Heyek
committed
Run cache refresh if cache file doesn't exist
1 parent e3f40cd commit 763366c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • experiment-trait-data-visualizer

experiment-trait-data-visualizer/app.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ render_season_output <- function(season_name, input, output, full_cache_data) {
257257
server <- function(input, output) {
258258

259259
# load 'full_cache_data' object from cache file
260+
if (!file.exists('cache.RData'))
261+
source('cache-refresh.R')
260262
load('cache.RData')
261263

262264
# render UI for all available seasons

0 commit comments

Comments
 (0)