Connect to an R Environment

R is an integrated suite of software that includes packages for advanced visualizations and statistics. If your users want to create and consume R visualizations in stories and analytic applications, you will need to configure a connection between SAP Analytics Cloud and a server hosting an R environment.

Connect to Your Own R Server

Context

First, you must install and configure your R environment and ensure that it is internet accessible. Refer to the following for detailed instructions: https://help.sap.com/doc/ba23463df44849efbfcb862169069d63/release/en-US/BOC-R-integration_g.pdf.
Note
Your remote R environment should be running on TSL version 1.2 or higher. For more information please refer to the following SAP Note: 3231708 Information published on SAP site.

Once that is complete, you can set up the connection in SAP Analytics Cloud.

Procedure

  1. Go to Start of the navigation path (Main Menu) Next navigation step  System Next navigation step  AdministrationEnd of the navigation path.
  2. Choose the R Configuration tab.
  3. Choose Edit.
  4. If you want users to create R-visualizations based on data from live HANA, BW, S/4HANA, and Universe models, set the R on Live Data Models toggle to On.
  5. Choose the Remote R connection option. This option disconnects your system from the R server runtime environment deployed by SAP Analytics Cloud, if it is available in your region. All configuration from this point on will impact all your users.
  6. Under Connection Details, enter the following information:
    1. Host: the name of the host system running the R environment on which Rserve is installed.
    2. Port: the port used to connect to the R environment.
  7. A certificate is required to connect your R environment. Under Certificate, do one of the following:
    • To upload the source file containing the certificate:

      1. Choose the Upload file option.

      2. Choose Select Certificate.

      3. Navigate to and select the appropriate file.

      4. Choose Open.

    • To submit a certificate that is already copied to your (operating system) clipboard:

      1. Choose the Paste Certificate option.

      2. Choose the cursor in the associated text box and press Ctrl + P.

  8. Under Credentials, in the User Name and Password text boxes, enter the credentials required to connect to your R environment.
  9. To ensure that your connection has been successful, choose Check Configuration.
  10. Choose Save.

Connect to an SAP R Server

Context

If you are not running your own R server, your users can still run scripts using an R server runtime environment provided by SAP, which is available to tenants operating through the following data centers: AP1, AP10, AP11, AP12, BR1, BR10, CA1, CA10,EU1, EU2, EU10, EU11 JP1, JP10, US1, US2, US3and US10. Note that your SAP Analytics Cloud URL indicates which data center you are connected to.

Procedure

  1. Go to Start of the navigation path (Main Menu) Next navigation step  System Next navigation step  AdministrationEnd of the navigation path.
  2. Choose the R Configuration tab.
  3. Choose Edit.
  4. If you want users to create R-visualizations based on data from live HANA, BW, S/4HANA, and Universe models, set the R on Live Data Models toggle to On.
  5. Choose the SAP R server runtime environment option. This option is selected by default.
  6. Choose Save.