Skip to content

Commit

Permalink
in case of duplicated names favor external data
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchultheis committed Jun 26, 2018
1 parent 295d081 commit c23d7d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wilson-basic/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ server <- function(session, input, output) {
external <- sapply(list.files(path = "external_data/", pattern = "\\.se|\\.clarion"), function(x){ paste0("external_data/", x)})

if (length(external) > 0) {
# omit duplicated names from load
load <- load[setdiff(names(load), names(external))]
# merge file lists
load <- c(load, external)
# sort by name
Expand Down

0 comments on commit c23d7d6

Please sign in to comment.