DistributedR
DistributedR copied to clipboard
Shiny App Crash
Shiny App crashes creating ODBC connection using vODBC:
library(vertica.dplyr)
vrt <- src_vertica(
dsn = 'VerticaDSN'
)
shinyServer(function(input, output) {
output$distPlot <- renderPlot({
# generate bins based on input$bins from ui.R
x <- faithful[, 2]
bins <- seq(min(x), max(x), length.out = input$bins + 1)
# draw the histogram with the specified number of bins
hist(x, breaks = bins, col = 'darkgray', border = 'white')
})
})
I have discovered that problem is at odbcConnect call. The interesting thing is if I execute odbcConnect in a console before launching my shiny app everything is OK.