Skip to content

Shiny App Crash #60

@bourbaki

Description

@bourbaki

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions