Hello guys, I am here with a problem. Actually I have to optimize a server.R code for a shiny app. Lets see the code first.
Actually the reactive functions are called four times after uploading every file for generating the plots. It should be only one call . How can I use the values in these output scopes without calling the functions every time. I am having error with global variables. How can I do it?
Thanks in advance.
**Note: I am very new at shiny. Pardon my mistakes.
We cannot see your Shiny UI code, but does the user have to upload 4 different files before you want them to be processed? If that's the case, you can create a button that says: "Create plots now" or something and put all the logic for generating plots in there so it's only executed once when the button is clicked.