I need to access different databases which contain symbols $ and € (or other currencies)
library(RPostgreSQL)
get_connection <- function(connection = current_connection)
{
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, dbname = connection,
host = "localhost", port = 5432,
user = "postgres", password = "dbpass")
con
}
c <- get_connection("€18")
and catch error
Error in postgresqlNewConnection(drv, ...) :
RS-DBI driver: (could not connect postgres@localhost on dbname "€18"
)
names with $ work like a charm, but then i use euro symbol I get error.
Is it problem of PostgreSQL driver? Is there any way to walkaround this? Maybe another type of connection to postresql?