RSession

To integrate the R language into BI#, you can use an R server that turns the R language into a network service. To use R in this way, you must connect to the server to obtain a session object that you can use in subsequent calls. In BI#, you store such a session in an RSession variable:

#define EngineVersion 2.0
#define RuntimeVersion 2.0

void RSessionDemo()
@Description: "Demonstrates the usage of RSession.";
@Category: "Demo";
{
    RSession session = RCreateServerSession("localhost", 555, "user", "pwd");
    bool result = REvaluate(session, "x <- 1");
    REndServerSession(session);
}