Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. library(RPostgreSQL)
  2. get_connection <- function(connection = current_connection)
  3. {
  4. drv <- dbDriver("PostgreSQL")
  5. con <- dbConnect(drv, dbname = connection,
  6. host = "localhost", port = 5432,
  7. user = "postgres", password = "dbpass")
  8. con
  9. }
  10. c <- get_connection("€18")
  11.  
  12. Error in postgresqlNewConnection(drv, ...) :
  13. RS-DBI driver: (could not connect postgres@localhost on dbname "€18"
  14. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement