J. Miguel,
J. Miguel Marin schrieb:
I assume that the Scilab part of D(COM) is for using it with Excel. But
I think it would be very valuable to connect, as in the case of MatLab,
R with free software as Octave or SciLab.
No, the Scilab part is for connecting _any_ application with Scilab. To
be more precise, any application which can act as a COM client.
I would like to know whether it is possible to interface SciLab with R,
as it can be done with MatLab, see e.g.:
http://learnserver.csd.univie.ac.at/rcomwiki/doku.php?id=rexcel_r_d_com_and_rcom_specific_problems_and_solutions
I have seen a so called RSciLab, that only suggests a gateway between R
and Scilab:
http://www.scilab.org/contrib/index_contrib.php?page=displayContribution&fileID=1117
But it is only a draft.
R can act as a COM client. E.g., you can use rcom to connect R to Scilab.
Some (untested) example code:
library(rcom)
sl<-comCreateObject("STATCONNECTORSRVLib.StatConnector")
comInvoke(sl,"Init","Scilab")
x<-1:10
dim(x)<-c(2,5)
comInvoke(sl,"SetSymbol","x",x)
y<-comInvoke(sl,"Evaluate","x'")
comInvoke(sl,"Terminate")
Thomas
_______________________________________________
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at