Hello, I am a newbie in R project and trying to call prcomp(x) of R function using (D)COM server communicate with R in ASP, and encountering the error "Runtime error -2147221493(8004000b). Automation Error, Object is static, operation not allowed."
Source code is shown as below: <% Set StatConn=Server.CreateObject("StatConnectorSrv.StatConnector") StatConn.Init ("R") Result=StatConn.Evaluate("x<-matrix(c(1,2,3,4,5,6,7,8,9),3)") Result=StatConn.Evaluate("y<-prcomp(x)") StatConn.Close %> I have another problem when displaying dimension variable "Result(1,1)" on client, there will be a "Type mismatch: 'Result'" error. Source code is shown as below: <% Set StatConn=Server.CreateObject("StatConnectorSrv.StatConnector") StatConn.Init ("R") Result=StatConn.Evaluate("x<-matrix(c(1,2,3,4,5,6,7,8,9),3)") Response.write Result(1,1) StatConn.Close %> You are very appreciated if you help me on above issue. Thanks Again! Regards, WeiQiang Li IT-Factory Information Systems Tel: 6485-2439 ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help