Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pool error message #7

Closed
cderv opened this issue Feb 1, 2018 · 1 comment
Closed

pool error message #7

cderv opened this issue Feb 1, 2018 · 1 comment

Comments

@cderv
Copy link
Contributor

cderv commented Feb 1, 2018

Something is odd with pool in the shiny app
image

it lacks a pool:: in the close statement

con <- pool::dbPool(odbc::odbc(), dsn =  "Postgres Dev")
onStop(function() {
  pool::poolClose(con)
})

But even after that I have the message. Don't know why. Just to let you know.

@colearendt
Copy link
Contributor

colearendt commented Feb 2, 2018

So it looks like onStop, once registered, is not re-registered? Or something like that? I'm not 100% familiar. In any case, restarting the R session with the fix you mentioned does the trick! Clearing the environment with rm(list=ls()) may help as well. I didn't test enough to be sure. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants