Hi, I am building a Shiny application and I will split my app.R into several .R files.
I need each .R file containing the codes to be executed according to a condition previously selected in an input.
I tried using in server section this code:
ifelse(input$in == ‘Option1’,{source(‘file1.R’)},ifelse(input$in == ‘Option2’.{source(‘file2.R’)}))
, but it didn't work.
Is there any reference I can see or any example you know of where something similar is done?
Thank you!