inst/app/server.R

server <- function(input, output, session){

  # Loop through all .R files in the subfolder "/R" and load them
  
  for (r_file in list.files(path = "R", pattern = "\\.R$")) { 
    source(paste0("R/", r_file), local = TRUE)$value 
  }
  
}
jcai849/iNZightTA documentation built on Dec. 2, 2020, 6:59 a.m.