How to switch between different versions of R?

How to switch between different versions of R?

book

Article ID: KB0080646

calendar_today

Updated On:

Products Versions
Spotfire Statistica -

Description

I have two versions of R installed but the un-supported version is active.    How can I make active the supported version of R?

Issue/Introduction

This article will discuss how to switch between different version of R so as to use a supported version of R with Statistica.

Environment

Windows operating systems only.

Resolution

DISCLAIMER : TIBCO Software does not provide support for problems that arise from improper modification of the registry. The Windows registry contains information critical to your computer and applications. Make sure you back up the registry before modifying it. For more information on the Windows Registry Editor and how to back up and restore it, refer to Microsoft Article ID 256986

R 3.4.2 is the latest version of R supported with Statistica 13.4.  The latest version of R as of the writing of this knowledge base article is R 3.5.1.  If R 3.5.1 is installed and used, or any other unsupported R version, then R 3.4.2 can also be installed side-by-side with R 3.5.1, for example  However, the version of R that is active in the registry may have to be changed so that Statistica will recognize and use R 3.4.2.

First, check to see what version of R is active in the registry.   Go to HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R and next to "Current Version" the active version will be in the Data column (for 32 bit version, check under: WOW6432Node):

Current Version active of R


If the active version is not supported by Statistica, make the support version of R active by following these steps:

1. Right-clicking on RSetReg.exe and selecting "Run as administrator":
Run RSetReg.exe
2.  Click "Yes" when the User Account Control will prompt for confirmation to make changes to your device.
3.  This will change the active version of R in the registry, which can be confirmed in the registry.  


Other related R knowledge base articles:
How to enable the R package in Statistica?
Manually enabling Statistica-R Integration for Statistica v13.3.0