18.12.2012 Views

Embedding R Tutorial

Embedding R Tutorial

Embedding R Tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

com in Visual Basic 6 (3/3)<br />

� dispinterface<br />

Dim r As Object<br />

Set r =<br />

CreateObject("RCOMServerLib.StatConnector")<br />

r.Init "R"<br />

r.EvaluateNoReturn "plot(1:100)"<br />

r.Close<br />

� custom interface<br />

Dim r As InternalConnector<br />

Set r = New InternalConnector<br />

r.Init "R"<br />

r.EvaluateNoReturn "plot(1:100)"<br />

r.Close

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!