By design, R-style graphics are not implemented in TERR.

By design, R-style graphics are not implemented in TERR.

book

Article ID: KB0082398

calendar_today

Updated On:

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

Description

By design, functions in the open-source R "graphics" and "grDevices" packages that directly produce graphics have not been implemented in TIBCO Enterprise Runtime for R (TERR).
 

Environment

All supported environments

Resolution


By design, functions in the open-source R "graphics" and "grDevices" packages that directly produce graphics have not been implemented in TIBCO Enterprise Runtime for R (TERR).

Examples:

  plot() and points() are R graphics functions
  png() and dev.off() are R graphics device functions

Calls to such functions in TERR simply return warnings like those shown in the following examples:

>
>
> plot( x = 1:10, y = 10:1 )
Warning message:
In plot.default(x = 1:10, y = 10:1) : this function not yet implemented - graphics functions are not implemented

>
>
> png( "c:/data/MyImage.png" )
Warning message:
In png("c:/data/MyImage.png") : this function not yet implemented

>
>


Documentation:

Known issues (such as this one) are documented in the Release Notes for each TERR release. The following is from page 17 of the Release Notes for TERR 4.4.0:

-----
https://docs.tibco.com/pub/enterprise-runtime-for-R/4.4.0/TIB_terr_4.4.0_relnotes.pdf

Known issues

In this release, some open-source R functionality is not available, including graphics devices.
-----


Workaround:

You can use TERR's built-in "RinR" package and its RGraph() function to send R graphics tasks out to an open-source R instance that you have installed on the same machine, and you can pass the resulting images back through TERR for display in Spotfire, but you will not be able to display those images using TERR itself.

The following command will load the "RinR" package into a TERR Console session's search() path:

  library( RinR )

The following TERR Console command will open the help file for the RGraph() function in a web browser:

  help( "RGraph", try.all.packages = TRUE )



Existing enhancement suggestion:

If you would like to register your interest in having TERR implement R-style graphics, you can vote for the following suggestion in the TIBCO Ideas Portal:

-----
https://ideas.tibco.com/ideas/TERR-I-4

Support for R-style graphics
-----


 

Issue/Introduction

By design, R-style graphics are not implemented in TERR.

Additional Information

https://docs.tibco.com/pub/enterprise-runtime-for-R/4.4.0/TIB_terr_4.4.0_relnotes.pdf

https://ideas.tibco.com/ideas/TERR-I-4