speendo
speendo

Reputation: 13335

How to install RPostgreSQL on Windows

(How) is it possible to install RPostgreSQL on a Windows XP machine (running R 2.12.1) without admin-rights?

(Btw. this post is a follow-up to this post: RpgSQL - Why is it so slow?)

[edit]

What I tried yet:

First I tried to find a documentation on how to install RPostgreSQL on Windows. I didn't succeed (I could only find a documentation for MacOS here).

After that I tried a naive solution:

install.packages('RPostgreSQL', type='source')

Didn't actually work (I can give you the error message later, at the moment R is busy).

I'm sure there are more possibilities like compiling the source by hand, but I haven't done this before with R packages, so I didn't try it yet.

Upvotes: 0

Views: 1876

Answers (1)

ROLO
ROLO

Reputation: 4223

You will need Rtools and Postgres installed on your machine to be able to build RPostgreSQL from source, and unfortunately Windows binaries are not available.

Another option is to try RJDBC, see here. You will only need to find the RJDBC Postgres driver jar somewhere. You don't need to install that jar, just put it in a directory somewhere and give RJDBC the right path.

Only question is how fast this solution will be, please inform us when you got it working.

Edit: As mentioned in the comments, RpgSQL uses RJDBC, so using the latter will most likely not result in any speed up (unless RpgSQL introduces a bottleneck somewhere).

Upvotes: 2

Related Questions