set x = new StatConnector
x.Init ("R")
y = x.Evaluate ("test<-1")
x.Close

this can not work
you are doing an assignment in R
y = x.Evaluate ("test<-1")
this should be
x.EvaluateNoReturn "test<-1"

if you want some result in VBA, do similar to
y = x.Evaluate("2*3")
or
x.EvaluateNoReturn "test<-2*3*4"
y = x.Evaluate("test")





Abderrazzak MANY wrote:
I did set a reference to StatConnectorSrv in VB for Access.
Should I set a reference to an other library ?

"Thomas Baier" <[EMAIL PROTECTED]> a écrit :

Abderrazzak MANY schrieb:
Hello,

I?ve downloaded correctly both R (2.7.0) and R(D)COM, when I press start in the start 01 -Basic Test window it seems working.

I wanted to check the whole connection by using this simple code in VBA for Access :

set x = new StatConnector
x.Init ("R")
y = x.Evaluate ("test<-1")
x.Close

It?s not working (error in recognizing StatConnector), should I configure something before ?

Did you set a reference to the type libraries?

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




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
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



--
Erich Neuwirth, University of Vienna
Faculty of Computer Science
Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-39464 Fax: +43-1-4277-39459
_______________________________________________
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