# Compute resource options for RStudio in projects #

When you run RStudio in a project, you choose an environment template for the runtime environment\. The environment template specifies the type, size, and power of the hardware configuration, plus the software template\.

<!-- <ul> -->

 *  [Types of environments](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/rstudio-envs.html?context=cdpaas&locale=en#types)
 *  [Default environment templates](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/rstudio-envs.html?context=cdpaas&locale=en#default)
 *  [Compute usage](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/rstudio-envs.html?context=cdpaas&locale=en#compute)
 *  [Runtime scope](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/rstudio-envs.html?context=cdpaas&locale=en#scope)
 *  [Changing the runtime](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/rstudio-envs.html?context=cdpaas&locale=en#change-env)

<!-- </ul> -->

## Types of environments ##

You can use this type of environment with RStudio:

<!-- <ul> -->

 *  Default RStudio CPU environments for standard workloads

<!-- </ul> -->

## Default environment templates ##

You can select any of the following default environment templates for RStudio in a project\. These default environment templates are listed under **Templates** on the **Environments** page on the **Manage** tab of your project\. All environment templates use RStudio with Runtime 23\.1 on the R 4\.2 programming language\.

<!-- <table> -->

Default RStudio environment templates

| Name                 | Hardware configuration | Local storage | CUH rate per hour |
| -------------------- | ---------------------- | ------------- | ----------------- |
| `Default RStudio L`  | 16 vCPU and 64 GB RAM  | 2 GB          | 8                 |
| `Default RStudio M`  | 8 vCPU and 32 GB RAM   | 2 GB          | 4                 |
| `Default RStudio XS` | 2 vCPU and 8 GB RAM    | 2 GB          | 1                 |

<!-- </table ""> -->

If you don't explicitly select an environment, `Default RStudio M` is the default\. The hardware configuration of the available RStudio environments is preset and cannot be changed\.

For compute\-intensive processing on a large data set, consider pushing your data processing to Spark from your RStudio session\. See [Using Spark in RStudio](https://medium.com/ibm-data-science-experience/access-ibm-analytics-for-apache-spark-from-rstudio-eb11bf8b401b)\.

To prevent consuming extra capacity unit hours (CUHs), stop all active RStudio runtimes when you no longer need them\. See [RStudio idle timeout](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/manage-envs-new.html#stop-active-runtimes)\.

## Compute usage in projects ##

RStudio consumes compute resources as CUH from the Watson Studio service in projects\.

You can monitor the Watson Studio CUH consumption on the **Resource usage** page on the **Manage** tab of your project\.

## Runtime scope ##

An RStudio environment runtime is always scoped to a project and a user\. Each user can only have one RStudio runtime per project at one time\. If you start RStudio in a project in which you already have an active RStudio session, the existing active session is disconnected and you can continue working in the new RStudio session\.

## Changing the RStudio runtime ##

If you notice that processing is very slow, you can restart RStudio and select a larger environment runtime\.

To change the RStudio environment runtime:

<!-- <ol> -->

1.  Save any data from your current session before switching to another environment\.
2.  Stop the active RStudio runtime under **Tool runtimes** on the **Environments** page on the **Manage** tab of your project\.
3.  Restart RStudio from the **Launch IDE** menu on your project's action bar and select another environment with the compute power and memory capacity that better meets your data processing requirements\.

<!-- </ol> -->

## Learn more ##

<!-- <ul> -->

 *  [RStudio](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/rstudio-overview.html)
 *  [Monitoring account resource usage](https://dataplatform.cloud.ibm.com/docs/content/wsj/admin/monitor-resources.html)

<!-- </ul> -->

**Parent topic:**[Choosing compute resources for tools](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/environments-parent.html)

<!-- </article "role="article" "> -->