Browse Source

HPCC-10307 R integration terminates process if R syntax invalid

Enabline "interactive" mode allows us to catch the excaption (and avoid
killing the entire process).

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 years ago
parent
commit
c51ad979cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/Rembed/Rembed.cpp

+ 1 - 1
plugins/Rembed/Rembed.cpp

@@ -69,7 +69,7 @@ public:
     RGlobalState()
     RGlobalState()
     {
     {
         const char *args[] = {"R", "--slave" };
         const char *args[] = {"R", "--slave" };
-        R = new RInside(2, args, true, false, false);
+        R = new RInside(2, args, true, false, true);  // Setting interactive mode=true prevents R syntax errors from terminating the process
         // The R code for checking stack limits assumes that all calls are on the same thread
         // The R code for checking stack limits assumes that all calls are on the same thread
         // as the original context was created on - this will not always be true in ECL (and hardly
         // as the original context was created on - this will not always be true in ECL (and hardly
         // ever true in Roxie
         // ever true in Roxie