HPCC-10359 Embedded R fails if there are ^M characters in the source

This is likely to be the case when submitting from the ECL IDE.

We have also seen reports of Python failing for similar reasons, though I have
not reproduced them (it may depend on the python version, I suppose).

At the same time, improve the error reporting and recovery in embedded R.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
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>
HPCC-10359 Embedded R fails if there are ^M characters in the source

Minor changes following code review

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #5096 from richardkchapman/embed-cr

HPCC-10359 Embedded R fails if there are ^M characters in the source

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>