2
I am creating a graphical interface for an algorithm I developed in R language. The algorithm has several scripts with functions that talk to each other, and after started, it takes hours to complete. I am using the Shiny package with its inputs to collect the parameters of the algorithm, and so put it to run. However, I’m not succeeding. The algorithm has no graphical outputs, only writes files on the machine itself.
The code follows, where algorithm is the code to be called, and algoritmo.R
is where all scripts with functions are located.
ui <- ... (
...
tabPanel ("Resultados",
textOutput ("resultados")
)
)
server <- function (input, output) {
...
output$resultados <- eventReactive ({
if (input$iniciar)
isolate (algoritmo (input))
})
}
source ('algoritmo.R')