For the connection object, the required arguments
host
and port
argument can be set via
options
. In addition, 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. Of course, the user can also
call blpConnect
explicitly and store the connection object.
This helper function looks up the stored connection object and
returns it. In case no connection has been established, and error
message is shown.