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()"); // occur
"this Connecting ID connect failed " error!!
# 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! "
Thanks a lot.
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