Learn R Programming

mstrio (version 11.2.0)

close: Closes a connection with MicroStrategy REST API

Description

Closes a connection with MicroStrategy REST API.

Usage

close(connection)

# S4 method for connection close(connection)

Arguments

connection

MicroStrategy REST API connection object returned by connect_mstr()

Examples

Run this code
# NOT RUN {
# Connect to a MicroStrategy environment
con <- connect_mstr(base_url = "https://demo.microstrategy.com/MicroStrategyLibrary/api",
                    username = "user",
                    password = "password",
                    project_name = "Financial Reporting")

# A good practice is to disconnect once you're done
# However, the server will disconnect the session after some time has passed
close(con)
# }

Run the code above in your browser using DataLab