[R-SIG-Finance] Does anybody know how to connect to KDB from within R?

Daniel Cegielka daniel.cegielka at gmail.com
Fri Sep 25 09:10:58 CEST 2009

Michael pisze:
> It doesn't seem to work on my computer:
> I am using that trial version on my personal laptop: the one that
> auto-exits every 2 hours...
> What might be the problem?
To connect R into kdb you must set port:

start q with "-p port" parametr:
q -p 5000

or from q console:

\q 5000

and set this port in R session:

con <- .Call("kx_r_open_connection",list(host="localhost",as.integer(port=5000),user=NULL))

and you can connect R (or web browser) to kdb.


More information about the R-SIG-Finance mailing list