@hinkelman, I have tried both ways. Below is my code. Also, I would like this post unhidden from the community forum. I believe the issue is common and relevant to the post I originally replied to. Hiding posts is a form of censorship and not a part of an open & collaborative community.
If you understand the issue, please provide an example or of course show me my error with the correction. I have certainly researched the issue and cannot find a solution so I am asking an expert now for better clarification.
###########################################
observeEvent(input$RUN, {
OS <- .Platform
cat(paste("0.) OS:",OS$OS.type),sep="\n")
cat("1.) RUN model input initialized",sep="\n")
Gather user options
cat("2.) data: ")
data <- getData()
cat("3.) targetNames: ")
targetNames <- getTargetNames()
cat("4.) type: ")
type <- getType()
cat("5.) preProcessing: ")
preProc <- getPreProc()
cat("6.) metric: ")
metric <- getMetric()
cat("7.) chosenModels: ")
chosenModels <- getChosenModels()
Execute R Script
cat("8.) executing 'AutoML' script",sep="\n")
main_reactive$test <- AutoML(data,targetNames,type,preProc,metric,chosenModels)
})
output$AutoML_plot <- renderPlot({
AutoML_plot <- NULL
req(main_reactive$test, {
AutoML_plot <- main_reactive$test
cat("9.) generating plot\n",sep="\n")
})
return(AutoML_plot$Dashboard)
})
output$AutoML_table <- renderTable({
AutoML_table <- NULL
req(main_reactive$test, {
AutoML_table <- main_reactive$test
cat("10.) generating table\n",sep="\n")
})
return(AutoML_table$Results)
})
####################################
Thanks,
Ed