The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
R error crashes RM
tennenrishin
Member Posts: 177 Contributor II
In R,
Error: '\d' is an unrecognized escape in character string starting "\d"
(because it should have been '\\d')
But in RM
grep('\d','1')results in
Error: '\d' is an unrecognized escape in character string starting "\d"
(because it should have been '\\d')
But in RM
<?xml version="1.0" encoding="UTF-8" standalone="no"?>causes an abrupt termination of RM, without any prompts or messages.
<process version="5.3.008">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.3.008" expanded="true" name="Process">
<process expanded="true">
<operator activated="true" class="r:execute_script_r" compatibility="5.3.000" expanded="true" height="60" name="pushChart" width="90" x="313" y="75">
<parameter key="script" value="grep('\d','1')"/>
<enumeration key="inputs"/>
<list key="results"/>
</operator>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
</process>
</operator>
</process>
0
Answers
I've had a look into this and it seems like we can't do anything about it The library we are using creates a JRI session to R.
When providing the command you've posted this session even crashes the Java Runtime Environment: I'm going to file an issue for this, but probably there is no easy fix for this.
Best,
Nils