Error in load of RData into Streaming TERR adapter

Error in load of RData into Streaming TERR adapter

book

Article ID: KB0074805

calendar_today

Updated On:

Products Versions
TIBCO Streaming 10

Description

If you try to load an RData file into the TERR instance bundled with Streaming 10.x that has been saved from TERR in Spotfire 10.x you might see this error:
Error in load("d:/aaa/test.rdata") : file 'd:/aaa/test.rdata' is corrupt or not of a supported format

Issue/Introduction

TIBCO Streaming may use an older version of TERR

Resolution

This was seen when using Streaming 10.6.0 with Spotfire 10.10.0. This may affect other version combinations.

The version of TERR bundled with TIBCO Streaming 10.6.0 for developer use is 4.4.0 (R version 3.4.1) and the version of TERR in Spotfire 10.10.0 is 5.1.0 (R version 3.6.2). There was a file format change in R version 3.5.0 when doing save() or save.image().

One workaround is, when saving within Spotfire, to specify version '2' like this:
    save.image(version=2, "d:/aaa/test.rdata")
Then it should load correctly in TIBCO Streaming embedded TERR. 

Alternatively, install TIBCO Enterprise Runtime for R separately from TIBCO Streaming and use this external TERR from the TIBCO Streaming TERR Operators by setting properties "Use Embedded TERR" un-checked (false) and "TERR Home Path" to the install location of the external TERR. This may be necessary if you are using R language features that are greater than what is supported in TERR version 3.4.1. See TIBCO Streaming product documentation page:
  TIBCO Streaming > Authoring Guide > Using Global Java Operators > Using the TERR Operator, "Installing an Alternate TERR Version"

Additional Information

Using the TERR Operator, Installing an Alternate TERR Version