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 script: backslash \ in file_path macro cannot be parsed
hi,
In rapidminer, the file_path macro is used with single backslashes , not double "\\"" or "/" like usual in R.
Therefore, the path cannot be read by the R script.
I tried to do some conversion like
<SPAN class="pln">normalizePath</SPAN><SPAN class="pun">(</SPAN><SPAN class="pln">example.csv</SPAN><SPAN class="pun">,</SPAN><SPAN class="pln"> winslash </SPAN><SPAN class="pun">=</SPAN> <SPAN class="str">"/"</SPAN><SPAN class="pun">)</SPAN>
<SPAN class="pln">gsub</SPAN><SPAN class="pun">(</SPAN><SPAN class="str">"\\"</SPAN><SPAN class="pun">,</SPAN> <SPAN class="str">"/"</SPAN><SPAN class="pun">,</SPAN><SPAN class="pln"> example.csv</SPAN><SPAN class="pun">,</SPAN><SPAN class="pln"> fixed </SPAN><SPAN class="pun">=</SPAN> <SPAN class="lit">TRUE</SPAN><SPAN class="pun">)</SPAN>
but nothing worked...I would like to use file_path macro to create an excel file in the same directory..
Dec 16, 2016 11:09:47 PM INFO: [1] "Failed to parse the script."
Dec 16, 2016 11:09:47 PM INFO: [1] "'\\U' ohne Hex-Ziffern in der Zeichenkette beginnend mit \"\"C:\\U\" genutzt"
0