[R-SIG-Finance] Rblpapi connection issue

Dirk Eddelbuettel edd at debian.org
Fri Jan 22 16:56:00 CET 2016

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.


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

More information about the R-SIG-Finance mailing list