How to enable or disable Statistica-R Integration for Statistica manually?

How to enable or disable Statistica-R Integration for Statistica manually?

book

Article ID: KB0070321

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.3.0 or higher versions

Description

Install the R Statistical Environment ( https://www.r-project.org) and the COMadaptR package ( https://tran.tibco.com/statistica/)  on the same computer with TIBCO Statistica™. Statistica™ is an advanced analytic platform that is compatible with open-source R, as well as the open-source COMadaptR package that simplifies integration with R.  These open-source modules are available under separate software license terms and are not part of Statistica™. As such, they are not covered by the terms of your agreement with TIBCO, including any terms concerning support, maintenance, warranties, and indemnities. Download and use these modules is solely at your own discretion and subject to the open-source license terms application to them.
 By proceeding to download, install and use the R Statistical Environment and COMadaptR R package, you acknowledge that foregoing distinctions between Statistica and the open-source modules.

Note: It is recommended to download the latest COMadaptR version from https://tran.tibco.com/statistica/. Earlier versions of COMadaptR package may not work with newer R versions.
 

Issue/Introduction

This article tells about how to enable Statistica-R Integration manually for Statistica v13.3.0 and higher

Environment

OS: Windows

Resolution

Enable Manually


1. Install Statistica v13.3.0 if it hasn’t already been installed.

2. Install the R Statistical environment (Version >= 3.0.0)

3. Run R with elevated privileges (Run as Administrator)

User-added image

4. If using R-3.0.x or R-3.1.x or R-3.2.x, execute the following command; if using higher version, skip.
setInternet2(TRUE)

Note: R is case-sensitive.
User-added image

5. Execute the following command to install the COMadaptR package from TRAN.
install.packages("COMadaptR", repos = "https://tran.tibco.com/statistica", type = "win.binary")

User-added image

6. Execute the following command to query and note the installation directory for COMadaptR package.
find.package("COMadaptR")

User-added image

7. Open a command prompt (cmd.exe) with elevated privileges (Run as Administrator) and navigate to the directory in which the COMadaptR package was installed.

User-added image

8. Register the 32-bit and 64-bit COMadaptR servers using the following commands.

For 64 bit: libs\x64\COMadaptR.exe /regserver
For 32 bit: libs\i386\COMadaptR.exe /regserver

Note : If you only have the 64-bit version of R there is no need to  register the 32-bit comAdaptR

User-added image
 
Statistica-R integration should be complete at this point.

For any issues, find the install.COMadaptR.log file at one of the following location: Contact Spotfire support by submitted a case at https://support.tibco.com  and attach the install.COMadapter.log file.


Disable Manually

To disable R integration, follow instructions as below:

1. Launch Statistica with elevated privileges (right-click Statistica icon and select "Run as administrator").

2. Under Home>>R Integration or Home>>Options>>R Integration and click "Disable R Integration".

User-added image

3. After clicking "Disable R Integration", a dialog will be prompted again to confirm whether you would like to disable Statistica-R integration. Click "Yes" if you are intended to disable it.

4. When R Integration is disabled, "R Integration: Not Enabled" is seen under Options.

User-added image