Bryan,
[EMAIL PROTECTED] schrieb:
I chose to use C#.NET for the interface language to build some
financial application with the R packages.Since there was not a .NET
component bundled with R, I used the R-(D) COM interface for the
automation. There have two questions to ask you:
1) Connecting Error! Run envrionment :Visualstudio2005 ,WindowsXp
using STATCONNECTORCLNTLib;
using StatConnectorCommonLib;
using STATCONNECTORSRVLib;
StatConnector conR = new STATCONNECTORSRVLib.StatConnectorClass();
conR.Init("R");
conR.EvaluateNoReturn("library(fCalendar)");
conR.Evaluate("x1<-Sys.timeDate()"); // occur "this Connecting
ID connect failed " error!!
Evaluate() will return an error. Try EvaluateNoReturn here.
# Sys.timeDate() is a function belong to "fCalendar" package ,
and "fCalendar" package has already been downloaded on the local
machine. The code above can be run in "R" platform right.
2) If the "source" funcion can be used ?
conR.EvaluateNoReturn("source(\" d:\\myfile.r \",echo=T)"); // occur "
this object is static ,don't allow this operation! "
have a look at rcom.univie.ac.at (Wiki and mailing list archives) on
hints on debugging. Check the error codes. Consult C# documentation on
how to do this. Look up the error codes in the DCOM docs...
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