[R-SIG-Finance] Rblpapi connection issue

Will Oswald will.oswald at gmail.com
Fri Jan 22 17:08:15 CET 2016


Thanks, and yes, all working straight out of the box.

On 22 Jan 2016, at 11:56 PM, Dirk Eddelbuettel <edd at debian.org> wrote:


On 22 January 2016 at 10:44, John Laing wrote:
| I think you may have misinterpreted. You _should_ call blpConnect, and you
| only need to do it once. You don't need to call blpAuthenticate. A very
| short script might look like this:
| 
| require(Rblpapi)
| blpConnect()
| bdp("USDCAD Curncy","PX_LAST")

Exactly.  (Though I prefer library() over requires() here.)

We worked diligently to make this as trivial and reliable as possible.

A connection object is established _once_ when the package is loaded if and
only options("blpAutoConnect") is set to true. Then blpConnect() is called,
and it too relies on options() to get the hostname (if "localhost") and/or
the default port will not do.  Once you have that connection, it will be
supplied to all accessor functions -- no need to carry it around explicitly
from call to call.

All that should "just work" as it does for us.  If it doesn't for you, please
file an issue at the GitHub repo.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



More information about the R-SIG-Finance mailing list