Hi,
I'm trying to use Shiny as a GUI for running an R code, so that people who don't usually use R will be able to operate. Essentially this script is just uploading two csv tables, choosing parameters (eg defining something like x=30, y=10) and letting the R script run normally. The output is just plots and two tables.
(note: I understand that in order for shiny to present the plots I need to use the appropriate commands in ui and server, but that is a more advanced thing I'd like to do in the future)
The code is already written in a "regular" R script. While running parts of it using "observe" and other reactivities, the global environment stays empty and it seems to me there's an easier way to perform this task than the way I'm trying to do it.
So, Is there an easy way to just let an R script run?
I've found this: https://rdrr.io/cran/shinyjs/man/runcode.html
but it says in the description that it is not recommended:
"... it should not be included in an app that is accessible to other people , as letting others run arbitrary R code can open you up to security attacks."
Best