Improve R installation and detection


Version: 2025b

Type: Features

Category: Programming

Subcategory: R

Jira: ORG-29322


the order that Origin find the R is:

  1. Check the environment variable "R_HOME";

  2. Check the registry(the value of InstallPath in HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R);

  3. Check the uninstall path(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\R for Windows xx.yy.zz_is1);

  4. Check ini file ORConfig.ini(show a dialog to choose a R program to launch, and save the path to ORConfig.ini) in the path of the directory designated for temporary files(%TEMP%\ORConfig.ini, the value of Location in RHome section).