I am trying to connect to a external database (PostgresSQL) from Rstudio by using DBI and RPostgres. I defined all parameters:
con <- DBI::dbConnect(RPostgres::Postgres(),
dbname = 'name',
host = 'http://bi-warehouse.cngdka9w0zww.us-east-1.rds.amazonaws.com/',
port = 5432,
user = 'user',
password = 'passwd')
but still getting the error:
Error in connection_create(names(opts), as.vector(opts)) :
could not translate host name "http://bi-warehouse.cngdka9w0zww.us-east-1.rds.amazonaws.com/" to address: Name or service not known