# Setting Up R in Astera

R is a programming language needed to run some of the data science related objects in Astera, such as objects in the *Testing and Diagnostics* and *Analytical Models* sections of the Toolbox.

The version 4.0.2 of R is the most compatible with the Astera Client.

### Steps to Install and Connect with R.4.0.2

1\. First, go to <https://cran.r-project.org/bin/windows/base/old/4.0.2/> and install **R-4.0.2** for windows by clicking on its installer with the (.exe) file extension.

![](https://docs.astera.com/projects/centerprise/en/10/_images/01-website.png)

2\. Locate the directory where you want to save your installer and click *Save.*

![](https://docs.astera.com/projects/centerprise/en/10/_images/02-downloads.png)

Here, we are saving the installer in the Downloads folder.

3\. Run the installer by clicking on it. Leave all the installation settings as default. The R package will be downloaded in your Program Files.

![](https://docs.astera.com/projects/centerprise/en/10/_images/03-installer.PNG)

4\. Next, launch the Astera client and go to *Server* > *Manage* > *Server Properties.*

![](https://docs.astera.com/projects/centerprise/en/10/_images/04-server-properties.png)

The Server Connection Properties tab will open.

5\. Provide the path of the bin folder of the R-4.0.2 package in the *File Path* textbox.

![](https://docs.astera.com/projects/centerprise/en/10/_images/06-bin-location.png)

Alternatively, you can also click on the folder icon on the right and select the bin path from the directory.

![](https://docs.astera.com/projects/centerprise/en/10/_images/07-bin-path.png)

6\. Click on the *Save* icon in the secondary menu bar to save the changes made in the Server Connection Properties tab.

![](https://docs.astera.com/projects/centerprise/en/10/_images/08-1-save.png)

7\. It will prompt you to reboot the server. Click *Yes,* and then click *OK.*

![](https://docs.astera.com/projects/centerprise/en/10/_images/08-2-reboot.PNG)

![](https://docs.astera.com/projects/centerprise/en/10/_images/08-3-save-ok.png)

8\. Click *OK* to start the installation of the packages.

![](https://docs.astera.com/projects/centerprise/en/10/_images/11-start.PNG)

9\. A green bar will show the installation progress. Wait till it is complete.

![](https://docs.astera.com/projects/centerprise/en/10/_images/08-max-record-limit.png)

10\. Once the installation is completed, a dialogue box will pop up, notifying you that the installation was successful. Click *OK.*

![](https://docs.astera.com/projects/centerprise/en/10/_images/10-final.PNG)

You have successfully integrated R-4.0.2 with your Astera client.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/astera-data-stack-v10/setting-up/setting-up-r-in-astera.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
