RStudio

R is a popular statistical analysis and machine-learning package that enables data management and includes tests, models, analyses, and graphics. RStudio provides an integrated development environment for working with R scripts.

Service This service is not available by default. An administrator must install the service. To determine whether the service is installed, open the Services catalog. If the service is installed and ready to use, the tile in the catalog shows Ready to use.

Usage information and limitations

  • You can launch RStudio IDE from within a Watson Studio project.
  • The RStudio IDE runs in an RStudio environment. A default RStudio environment is included with the RStudio Server Runtimes service. You can create custom RStudio environment templates. For details, see RStudio environments.
  • In a project, only one RStudio IDE session can be active at any given moment. If you want to open multiple sessions at the same time, you must set up a separate project.
  • You can use the RStudio IDE in projects with Git integration and in projects without Git integration.

RStudio without Git integration

When you work in RStudio from a project that does not have integration with a Git repository, you can create R scripts or Shiny apps, and work with data assets from the project, but you can't add your scripts or Shiny apps to the project as assets to share with other users.

However, you can deploy applications from a deployment space by using a code package. See Adding code packages to a deployment space.

RStudio with Git integration

When you work in RStudio from a project that is integrated with a Git repository, you can share your work on R scripts and Shiny apps with other users in your project.

The Git extension is pre-installed, enabling access to the repository that you associated with your project at the time you launch RStudio and the Git tab is added to the RStudio toolbar.

If you have the Watson Machine Learning service installed, you can deploy your applications in a deployment space as URLs that are accessible to users.

You can associate a project with a Git repository only while you're creating the project. The integration with Git differs depending on whether you create a project with default Git integration or create a project using deprecated Git integration. See Creating projects with Git integration.

Starting the RStudio IDE

To start the RStudio IDE in your project:

  1. Click RStudio from the Launch IDE menu on your project's action bar.

  2. Select an environment.

  3. Click Launch.

    The environment runtime is initiated and the development environment opens.

    If you experience issues with starting RStudio, see Troubleshooting problems with RStudio.

Next steps

Depending on project: