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 | e...@debian.org

_______________________________________________
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.

Reply via email to