R integration fails with Spotfire Statistica and R 3.6.1

R integration fails with Spotfire Statistica and R 3.6.1

book

Article ID: KB0070218

calendar_today

Updated On:

Products Versions
Spotfire Statistica 14.0.1 and higher

Description

R 3.6.1 will not integrate with Statistica using COMadaptR 1.3.1.  

As of May 2024, the only COMadaptR available at  https://tran.tibco.com/statistica/html/COMadaptR.html is COMadaptR 1.3.1:

COMadaptR 1.3.1 available as of May 2024


When using COMadaptR 1.3.1 to integrate R 3.6.1 with Statistica, the following error occurs:

Automatic installatio of the R Intergation middlle component failed


When checking R integration status in Statistica (Home>>Tools>>R Integration), there is conflicting information.  Below shows "R Integration: Enabled" but the button "Enable R Integration" is also available:

Invalid state of R integration

This issue persists when Statistica is closed and re-launched.  Also the steps in this knowledge base article fail to resolve the issue:   https://support.tibco.com/s/article/How-to-enable-or-disable-Statistica-R-Integration-for-Statistica-manually

 

Issue/Introduction

R integration of R 3.6.1 fails with Spotfire Statistica 14.0.x and higher

Environment

OS: Windows

Resolution

Use the COMadaptR 1.2.0 middleware component

1.  Download the COMadaptR 1.2.0 zip file, attached to the bottom of this knowledge base article
2.  Extract the file to any desired location
3.  Copy the COMadaptR 1.2.0 folder to the R library folder, typically C:\Program Files\R\R-3.6.1\library
4.  Rename COMadaptR 1.2.0 to COMadaptR
4.  Open an admin command prompt
5.  Change to the C:\Program Files\R\R-3.6.1\library\COMadaptR\ directory
6.  Enter this command and press the Enter key:  COMadaptR.exe /regserver  If successfully, no message is displayed.

R 3.6.1 is now integrated with Statistica.  To verify, open the standalone.r  script file by going to Home>>Open>>Examples and opening the R folder.  Right-click on the R script and chose Run.

standalone.r runs successfully
  

Additional Information

https://support.tibco.com/s/article/How-to-enable-or-disable-Statistica-R-Integration-for-Statistica-manually
https://support.tibco.com/s/article/How-to-enable-the-R-package-in-Statistica
https://support.tibco.com/s/article/000050770

Attachments

R integration fails with Spotfire Statistica and R 3.6.1 get_app