Install packages for Statistics Services

Install packages for Statistics Services

book

Article ID: KB0081586

calendar_today

Updated On:

Products Versions
Spotfire Statistics Services All supported versions

Description

Using install.packages() when a special package is needed to run code in TERR under TSSS.

Issue/Introduction

How to install packages to be used in a TERR engine in TIBCO Spotfire Statistics Services (TSSS).

Environment

Product: TIBCO Spotfire (desktop client / Analyst / Professional) Version: All supported versions OS: All supported Operating Systems

Resolution

Launch the TERR engine included in the TSSS installation, which can be found in a path similar to:

     C:\Program Files\TIBCO\statsvcsXX\TSSSServiceName\engines\Terr\bin\TERR.exe

Run the install.packages() function with the lib= argument set, such as:

     install.packages("packageName", lib = .Library)

This will install the package in the expected location under TSSS.  To confirm, run the following test URL in TSSS:

     http://<servername>:<port>/<TSSSServiceName>/api/v8/function/utils/installed.packages

For example, if the servername is abcde, it is listening on port 8080, and it has a TSSSServiceName of SplusServer, the test URL will look like this:

     http://abcde:8080/SplusServer/api/v8/function/utils/installed.packages