无法在 Windows 上将 PostgreSQL(通过 SSL)与 RPostgresql 连接

Can not connect PostgreSQL(over SSL) with RPostgresql on Windows

我无法将 PostgreSQL(在 Heroku 上)与 Windows(64 位)上的 RPostgreSQL 连接。

我可以在 Windows 上将本地 postgresql(不是 ssl)与 RPostgreSQL 连接起来。我可以在 Windows 上从 PgAdmin 连接 Heroku 上的 PostgreSQL。我可以将 Heroku 上的 PostgreSQL 与 OSX 和 Linux 上的 RPostgreSQL 连接起来。

只有 Windows 上的 RPostgreSQL 无法连接 Heroku PostgreSQL。

错误信息是:

Error in postgresqlNewConnection(drv, ...) : 
  RD-DBI driver: (could not connect....xxxxx

有什么解决办法吗?

与此问题相关:Can't create dbConnect to Postgres with SSL. One solution that worked for me (also with a Heroku DB) is to use the RPostgres package instead. You can install the dev. version from Github: https://github.com/rstats-db/RPostgres