I've developed a script in R and am trying to get it to run in RM.
I don't get any output and it seems to be related to initializing the R library I need (psych). The results are Unknown R type. If I comment out the library as in this example, the script output is delivered to RM. Psych is already installed in R.
RM is up to date and I'm using Win 7 x64, R 2.12.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.1.003">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.1.003" expanded="true" name="Process">
<process expanded="true" height="431" width="614">
<operator activated="false" class="read_csv" compatibility="5.1.003" expanded="true" height="60" name="Read CSV" width="90" x="45" y="75">
<parameter key="csv_file" value="d:\Data\test_pca_data-rm.txt"/>
<parameter key="column_separators" value="\t"/>
<parameter key="use_quotes" value="false"/>
<list key="annotations"/>
<list key="data_set_meta_data_information"/>
</operator>
<operator activated="false" class="r:export_data" compatibility="5.1.002" expanded="true" height="60" name="Export Example Set" width="90" x="227" y="86"/>
<operator activated="false" class="normalize" compatibility="5.1.003" expanded="true" height="94" name="Normalize" width="90" x="112" y="300"/>
<operator activated="true" class="r:execute_script_r" compatibility="5.1.002" expanded="true" height="76" name="Execute Script (R)" width="90" x="313" y="255">
<parameter key="script" value="##library(psych) dataout <- as.data.frame(9) x <- 5 y <- 23 z <- x * y dataout <- z "/>
<enumeration key="inputs"/>
<list key="results">
<parameter key="dataout" value="Generic R Result"/>
</list>
</operator>
<connect from_op="Execute Script (R)" from_port="output 1" to_port="result 1"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
<portSpacing port="sink_result 2" spacing="0"/>
</process>
</operator>
</process>