inst/shinyApp/tabs/tab_surro_tables/server_surro_tables.R

## Render surrogates to ui
output[["surrogates_table"]]<- rendertable(surrogates())


## Render calibrated surrogates to ui
output[["calibrated_surro_table"]] <- DT::renderDataTable({
  cal<-calib_data_frame(calibrations(), metabo_measures(), bin_pheno_available())
  tryCatch({
    DT::datatable(data.frame(cal), options = list(pageLength = 5, scrollX = TRUE))
  }, error = function(err) {
    return(DT::datatable(data.frame(c(
      "No data available"
    )), rownames = FALSE, colnames = ""))
  })
})

Try the MiMIR package in your browser

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

MiMIR documentation built on May 29, 2024, 5:38 a.m.