Tips and Tricks for using TIBCO® Enterprise Runtime for R

Last updated:
6:29am Apr 09, 2019
Table of Contents

1. Saving data from TIBCO® Enterprise Runtime for R in TIBCO Spotfire® to TIBCO Enterprise Runtime for R in RStudio

When developing a Spotfire data function written in R for use with the R or TIBCO Enterprise Runtime for R engine, it is useful to start development by simply saving data so it can be loaded into an interactive R or TIBCO Enterprise Runtime for R session in RStudio (or other IDE).

2. Testing a data function inside and outside of Spotfire

TERR and Spotfire data conversions behave differently, so they can result in unexpected differences in data. To make sure you are not surprised when you test your data functions in TERR, and then run them in Spotfire, follow the steps to ensure the same data format in this Tips and Tricks article. 

3. Create RGraphics in Spotfire

You can use RinR package to call Open Source R graphics libraries such as ggplot and create a visualization to display in Spotfire. This article outlines how to do that.


PDF icon terr_save_code_doc.pdf350.03 KB

Feedback (4)

Yes, you can return the R object as a BLOB to Spotfire as a scalar output which gets stored in a document property, and then send that document property as a scalar input to another Data function (e.g., to be used in a prediction). This is essentially what we do behind the scenes with the predictive models that are created with the Predictive Modeling tools in Spotfire. 

Lou Bajuk 2:25pm Aug. 18, 2016

Any idea if it's possible to store non-table data from a TERR Spotfire data function as opposed to saving it out to file as in this example? E.g. Saving a trained prediction model and then loading it for predicting future instances.

garrett.bernstein 6:23am Aug. 18, 2016
This methodology sounds easy to developer. Thanks.
karab.sze 2:06am Mar. 17, 2016
Thanks, it is very helpful.
junhong.bai 5:39pm Jan. 20, 2016