[R] Need your help-SOS

WeiQiang.Li@seagate.com WeiQiang.Li at seagate.com
Wed Sep 10 11:58:09 CEST 2003


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




More information about the R-help mailing list