Hello Thomas,

thank you very much for your quick help, but when I write the code I obtain NULL's:

R> sl<-comCreateObject("STATCONNECTORSRVLib.StatConnector")
R> sl NULL
R> comInvoke(sl,"Init","Scilab")
NULL

I copied the sciproxy.dll file to the scilab bin folder, but I think this is only oriented to Excel.

From Scilab I could not find a way to do something similar to

SciLab> R_handle=actxserver('StatConnectorSrv.StatConnector');
SciLab> R_handle.Init('R');

But surely this an specific question for SciLab that I must solve afterwards.

Thank you


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





jm~

_______________________________

       J. Miguel Marin

http://www.est.uc3m.es/jmmarin

   Dep. of Statistics
University Carlos III of Madrid
       Spain (E.U.)
_______________________________


_______________________________________________
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

Reply via email to