Error in REvaluator when running REvaluate() or RGraph() in the RinR package.

Error in REvaluator when running REvaluate() or RGraph() in the RinR package.

book

Article ID: KB0083524

calendar_today

Updated On:

Products Versions
Spotfire Enterprise Runtime for R -
Not Applicable -

Description

Description:
When running REvaluate() or RGraph() in TERR, the following error is seen:

Error in REvaluator.(expr, substitute = FALSE, verbose = verbose, dat : The R interpreter, 'R', did not make an output file, the program probably could not be found (set options(RinR_R_FULL_PATH) or options(RinR_TERR_FULL_PATH) and call configureREvaluator)

Text output from the call to interpreter is:

    <no text output produced>


Cause:
The path to the open-source R installation cannot be determined in the REvaluate() or RGraph() function call.

Issue/Introduction

Error in REvaluator when running REvaluate() or RGraph() in the RinR package.

Resolution

Add the following line of code in your TERR_HOME/etc/TERRprofile.site, where "TERR_HOME" is the path to your TERR installation:

   options(RinR_R_FULL_PATH="<path>")

The <path> in this case should point at your R installation home binary path. You can obtain the R home path by running the following in R:

   Sys.getenv("R_HOME")

You will need to add '/bin/R' to the returned path. For example, if Sys.getenv("R_HOME") returns:

   C:\Program Files\R\R-3.4.1

then your <path> should be:

   "C:/Program Files/R/R-3.4.1/bin/R"

Note that TERR and R use the slash ("/") as the path separator, even in Windows.  Single backslashes ("\") will not work. 

Additional Information

You can read more about configuring the REvaluator in the help file for the functionality:

?configureREvaluator