简体   繁体   中英

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.

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM