Downloading and Installing Rtools42 for R 4.2 on Windows [Outdated]

Опубликовано: 01 Март 2025
на канале: TheCoatlessProfessor
23,271
193

Warning: As of R 4.3.0, there is a new version of Rtools that must be downloaded and installed! Please only use this video if you need to install Rtools for R versions between R 4.2.0 to 4.2.3!!

For R 4.3.0 and above, please see: *Insert Link to Rtools 4.3*

---

Note: You must be on R 4.2 on Windows for these steps to work!

Video Timestamps:

00:00 Video Bumper
00:07 Introduction
00:19 Navigating to Rtools page on CRAN: https://cran.r-project.org/bin/window...
00:46 Downloading rtools42-*.exe for Windows 64-bit
00:57 Launch Rtools installer
01:22 Accept UAC prompt
01:30 Use default Rtools directory
01:38 Allow default options
01:55 Installer is installing
02:11 Finish Install
02:23 Launch R from start menu
02:36 Install the Rcpp Package
03:07 Load the Rcpp package with library()
03:18 Test out the toolchain by using evalCpp("1+1")
04:02 Outroll/video summary

---

Summary:

Open Web Browser and go to:

https://cran.r-project.org/bin/window...

Click "Rtools42 installer" link

Once done downloading, open the installer.
Follow the installer prompts

After the installer finishes, open R.

Install Rcpp and test the installation by running in R

install.packages("Rcpp")
library("Rcpp")
evalCpp("1 + 1")