1. Requirements
-
Install R.
2. Windows
2.1. Installation
-
Run the rtools44-6104-6039.exe file with administrative privileges.
C:\rtools44
-
Click Next.
■ Save version information to registry ■ Create start-menu icon to msys2 shell
-
Click Next.
-
Click Install.
-
Click Finish.
2.2. Configuration
-
Note: To be able to compile R packages in the Command Prompt, the installation directory needs to be added to the PATH system environment variable.
-
Open Control Panel > System.
-
Select Advanced system settings.
-
Select the Advanced tab.
-
Click Environment Variables.
-
Select System variables > Path.
-
Select Edit.
-
Select New.
-
Type
C:\rtools44\usr\bin. -
Click OK.
-
Click OK.
-
Click OK.
-
Close System.