This function connects to the Bloomberg API
A character option with either a machine name that is resolvable by DNS, or an IP address. Defaults to ‘localhost’.
An integer variable with the connection port. Default
A logical indicating whether this connection should
be saved as the default, as opposed to returned to the
user. Default to
port argument, default
values can also be specified via
respectively, the named entries
If an additional option
blpAutoConnect is set to
‘TRUE’, a connection is established in the
.onAttach() function and stored in the package
environment. This effectively frees users from having to
explicitly create such an object.
default=TRUE case nothing is returned, and
this connection is automatically used for all future calls which
con argument. Otherwise a connection object is
returned which is required by all the accessor functions in the
Whit Armstrong and Dirk Eddelbuettel
1 2 3 4
## Not run: con <- blpConnect() # adjust as needed ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.