Using R with SAP Analytics Cloud

You can use SAP Analytics Cloud to create and edit visualizations based on R scripts.

R is an integrated suite of software that includes packages for advanced visualizations and statistics to perform the following tasks:
  • Insert R visualizations into your stories.
  • Interact with your visualizations, using controls such as filters.
  • Edit your R scripts and preview visualizations.
  • Share stories containing R visualizations with other users. With the R visualization capability, users are able to perform statistical and analytical analyses and create charts reflecting these analyses. These visualizations remain interactive and consider the row-level security of users.
    Note
    Both new models types and classic account models are supported. For more information on the new model types and classic account models, see Get Started with the New Model Type.
    Note
    To use R capabilities in SAP Analytics Cloud, your system must be configured to connect to an R runtime environment. For more information on connecting to an external R environment, see Connect to an R Environment. You can also run scripts on 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, JP1, JP10, US1, US2, US3and US10. For a list of packages, see https://saphanajourney.com/sap-analytics-cloud/learning-article/r-packages-for-sap-analytics-cloud/.
    Note
    Your SAP Analytics Cloud URL indicates which data center you are connected to.
The following resources are provided to help users:
  • The requisite code snippet for listing all the available packages installed on your R system.
  • Sample R scripts for visual statistical analysis.
  • A dashboard containing an R script editor, a snapshot of the environment after the R script is run, a console containing the output of the executed script, and a preview screen for the visualization.