inst/shiny_interface/myApp/server.R

server <- function(input, output, session) {

    observeEvent(input$do, {
        ## when the user clicks on the "Stop" button, the shiny app will stop
        ## and the list of selected traits will be sent back to the tr8 function
        ## to be elaborated
        stopApp(list(
            "BiolFlor"=input$biolflor,
            "Ecoflora"=input$ecoflora,
            "Pignatti"=input$pignatti,
            "LEDA"=input$leda,
            "AMF"=input$amf,
            "Catminat"=input$catminat,
            "Imkerbond"=input$imkerbond,
            "BROT"=input$brot,
            "efloracal"=input$eflora,
            "PLANTS"=input$plants
            ))
         
    })

}

Try the TR8 package in your browser

Any scripts or data that you put into this service are public.

TR8 documentation built on Dec. 2, 2020, 1:06 a.m.