Hi,
   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()");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // occur 
"this Connecting ID connect failed " error!!
#&nbsp; Sys.timeDate() is a function&nbsp; belong to&nbsp; "fCalendar" 
package&nbsp;, and&nbsp;"fCalendar" package has already 
been&nbsp;&nbsp;downloaded on the local machine. The code above can be 
run&nbsp; in&nbsp; "R"&nbsp; 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! "
&nbsp; Thanks a&nbsp; lot.
&nbsp;
Bryan

-------------------------------------------------------------------
新浪空间——与朋友开心分享网络新生活!(http://space.sina.com.cn/ )
_______________________________________________
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