Installation tutorial for R and RStudio

Table of contents

Preface

R installation process

RStudio installation process


Preface

First of all, let me state that R syntax is not very standardized and is not suitable for computer beginners who want to learn general programming.

In addition, we need to make it clear that RStudio is only an integrated development environment for R. Before installing RStudio, we need to install R.

R installation process

R’s official website address: https://www.r-project.org/

After entering the official website, click CRAN in the upper left corner

 Enter the download image source, and we select China. As for which image source under china, you can just choose it randomly.

 Here I selected the last one. After clicking, I will jump to this page and select the windows version.

Then jump to the page and click base

Jump to the page and click Download to start downloading.

After the download is complete, click on the downloaded installation package

The installation process is relatively simple, just keep selecting next step.

Note: If you need to change the installation path (the default installation is on the C drive), in the step of selecting the installation location, click Browse and select the folder path you want to install to.

After the installation is complete, the page will open as shown below:

RStudio installation process

 Download address: Download RStudio - Posit

 After opening the link, scroll down and click to download the free version.

After jumping to the page, scroll down and click the download link.

 After the download is complete, click the installation package to start the installation.

The installation process is relatively simple, so I won’t go into details here. Just keep clicking Next.

Note: If you need to change the installation path (the default installation is on the C drive), in the step of selecting the installation location, click Browse and select the folder path you want to install to.

 After the installation is completed, open RStudio and an error occurred while attempting to load the selected version of R. Please select a different R installation. error is displayed:

 After trying it, I found that in this interface, select the Choose a specific version of R option and click browser

 Enter the bin/x64/path, select Rterm.exe and click to open it.

 RStudio will then open normally, and the opening interface is as shown below:

 

Guess you like

Origin blog.csdn.net/weixin_54106682/article/details/128494155