Keywords: RinR, Cannot find R executable, RinR_R_FULL_PATH, TERR, Open source R
When using the RinR function you can run into an error like this:
TIBCO Enterprise Runtime for R returned an error
The data function 'DataFunctionName' could not be executed.
Error in REvaluator.(expr, substitute = FALSE, verbose = verbose, dat : The R interpreter, 'Cannot find R executable', 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 call to interpreter is
'"Cannot find R executable"' is not recognized as an internal or external command,
operable program or batch file.
eval(script, envir = .GlobalEnv)
eval(script, envir = .GlobalEnv)
withCallingHandlers({
RinR::REvaluate({
REvaluator.(expr, substitute = FALSE, verbose = verbose, data = data,
stop("The ", interpreterType, " interpreter, ", sQuote(RProgName),
This is due to not setting the path to the R engine as described in the following documentation:
By default, using configureREvaluator, RinR configures the two standard evaluators (REvaluator and TERRevaluator) so they know where the R and TERR engines are in the local file system.
On both Windows and Linux, configureREvaluator uses getOption("RinR_R_FULL_PATH") and getOption("RinR_TERR_FULL_PATH") to find the open-source R and TIBCO Enterprise Runtime for R executables, respectively.
If these options are set, they must specify the full path to the open-source R and the TIBCO Enterprise Runtime for R executables. For example, for open-source R on Windows, this might be "C:/Program Files/R/R-3.0.1/bin/R".
For open-source R on Linux, this might be "/usr/local/bin/R-3.0.1". If you set these options, no further configuration is necessary.
To store these configuration options permanently in your TIBCO Enterprise Runtime for R installation, add a line like the following:
options(RinR_R_FULL_PATH="C:/Program Files/R/R-3.0.1/bin/R").
to a TERRprofile startup file (for example, TERR_HOME/etc/TERRprofile.site).
The search strategy for when those options are not set is described in the help file for configureREvaluator.
Comments
0 comments
Please sign in to leave a comment.