Marciano,

Marciano Ferrier schrieb:
/p.EvaluateNoReturn "(library (survival))"/

/p.EvaluateNoReturn  "dataR <-read.table ('c:\\test.txt', header=T)"/

/p.EvaluateNoReturn "test.mod <- coxph (Surv(TOTTIJD, DOOD)~(T) + (N) + (M), data=dataR)"/
/p.EvaluateNoReturn "plot(survfit(lumc))"/
/p.EvaluateNoReturn "patient<-data.frame (T=1, N=0, M=1)"/
/p.EvaluateNoReturn "plot(survfit(test.mod,newdata=patient))"/
In the RGUI the code written above (without : p.EvaluateNoReturn and double quotes) works fine. In VB6 all lines do work proparly except the last line. This last line gives a run-time error. /2147221493 (8004000b) Method 'EvaluateNoReturn' of object Istatconnector Failed/ // I already tried a lot of tricks to solve my problem but it drives me creazy at the moment.
My first question is: am I doing something wrong?
My second question: is it possible to run this last line with the r(d)com connection or do I need to use another application or connection tool? My last question: can r(d)com handle the data.frame object? (I do suppose so since the read.table works fine).

Looks fine at first, but maybe you can find out _what_ has gone wrong. 8004000b is a return code you can look up in the documentation, your string log device also could maybe tell you some error message, R issues on the plot(survfit...). In the end, you could also try using rcom instead of RDCOM, that may also provide some useful debugging hints.

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

Reply via email to