Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
only show examples with file extension .clarion or .se
  • Loading branch information
HendrikSchultheis committed Aug 2, 2018
1 parent dc58404 commit 0944b5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wilson-basic/app.R
Expand Up @@ -504,12 +504,12 @@ server <- function(session, input, output) {
# Data options
#
# Use all .se and .clarion files specified in data
load <- sapply(list.files(path = "data", pattern = "\\.se|\\.clarion"), function(x){ file.path("data", x)})
load <- sapply(list.files(path = "data", pattern = "\\.se$|\\.clarion$"), function(x){ file.path("data", x)})

# check for additional data
if (dir.exists("external_data")) {
# use all .se and .clarion files specified in external_data/
external <- sapply(list.files(path = "external_data", pattern = "\\.se|\\.clarion"), function(x){ file.path("external_data", x)})
# use all .se and .clarion files specified in external_data
external <- sapply(list.files(path = "external_data", pattern = "\\.se$|\\.clarion$"), function(x){ file.path("external_data", x)})

if (length(external) > 0) {
# omit duplicated names from load
Expand Down

0 comments on commit 0944b5c

Please sign in to comment.