From 5dfb11a77c143cb1d7971ab76ee25e3c9b1b0da6 Mon Sep 17 00:00:00 2001 From: raiyyan Date: Mon, 6 Oct 2025 01:01:17 +0530 Subject: [PATCH] Docs: Add rig instructions for R pre-release testing Incorporates suggestion from Issue #239 to document the use of 'rig add next' and 'R-next' for installing and switching to the development version of R. --- chapters/testing_pre_release_r_versions.qmd | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/chapters/testing_pre_release_r_versions.qmd b/chapters/testing_pre_release_r_versions.qmd index 6eaba5f..22cf285 100644 --- a/chapters/testing_pre_release_r_versions.qmd +++ b/chapters/testing_pre_release_r_versions.qmd @@ -10,6 +10,28 @@ Whenever possible use a fresh package library for testing, even better would be A free Windows 10 virtual machine is provided by Microsoft (with a 90-day limit) for building, testing, and checking R packages and R itself. Package maintainers who work on Linux and MacOS can use it to test their packages on Windows. Read the [instructions](https://svn.r-project.org/R-dev-web/trunk/WindowsBuilds/winutf8/ucrt3/vm.html) on how to automatically set up the machine to check R packages. Tomas Kalibera describes the details of using virtual machine in the blog [Virtual Windows machine for checking R packages](https://blog.r-project.org/2021/03/18/virtual-windows-machine-for-checking-r-packages/index.html). +## Installing and Switching Pre-release R Versions + +A user-friendly way to manage and install R versions, including the pre-release (alpha) version, is by using the rig tool. + +To install the latest development version of R (often called R-next): + +```bash +rig add next +``` + +You can run this version directly in your terminal using the alias: + +```bash +R-next +``` + +Alternatively, you can switch it to be the default R version on your system: + +```bash +rig default R-next +``` + ## What can you test? You can test: