Spotfire data function or TERR script fails with "Error in RGraph(... : vector size cannot be NA"

Spotfire data function or TERR script fails with "Error in RGraph(... : vector size cannot be NA"

book

Article ID: KB0079227

calendar_today

Updated On:

Products Versions
Spotfire Enterprise Runtime for R All supported versions
Spotfire Desktop All supported versions
Spotfire Statistics Services All supported versions

Description

Spotfire data function or TERR script fails with "Error in RGraph(... : vector size cannot be NA"

Issue/Introduction

Spotfire data function or TERR script fails with "Error in RGraph(... : vector size cannot be NA"

Environment

All supported environments

Resolution

This error message typically indicates that the TERR script's call to RinR::RGraph() is sending its input data and R expression to a TERR instance for processing, instead of an open-source R instance.

One way to correct the problem is to make the TERR script explicitly define the path to open-source R using a call to configureREvaluator(), before the first call to RGraph() in the script. The following is an example:


  configureREvaluator(REvaluator, FullPath="C:/Program Files/R/R-3.4.4/bin/R.exe")



Background information:

By design, graphics are not implemented in TIBCO Enterprise Runtime for R (TERR). Because of this, a call to RGraph() whose input data and R expression are sent to TERR will be unable to initialize graphics devices for use in building plots.

The following public knowledge base article provides more information:

  https://support.tibco.com/s/article/By-design-R-style-graphics-are-not-implemented-in-TERR