How to connect R with PostgreSQL on OSX 10.10.2? -


i have following setup:

  • osx 10.10.2
  • postgresql 9.4.1
  • r 3.1.3

this answer of 2011 says easiest approach use rpgsql package. removed cran repository. rodbc mentioned there available as source, fails configure:

configure: error: "odbc headers sql.h , sqlext.h not found" error: configuration failed package ‘rodbc’ 

i've found package, me - rpostgresql, fails compile:

in file included rs-pqescape.c:7: ./rs-postgresql.h:23:14: fatal error: 'libpq-fe.h' file not found #    include "libpq-fe.h"              ^ 1 error generated. make: *** [rs-pqescape.o] error 1 error: compilation failed package ‘rpostgresql’ 

is there other way connect r , postgresql?

see rodbc connect sql server on mavericks

rodbc isn't supported on osx. ended doing use rjdbc, in cran.
setting connection data base isn't easy. can done: postgres db can't connect r rjdbc


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -