18.12.2012 Views

Embedding R Tutorial

Embedding R Tutorial

Embedding R Tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

R calls Visual Basic 6 (2/2)<br />

� Visual Basic 6 code<br />

Private mConn As InternalConnector<br />

Public Text As String<br />

Property Let Connector(ByVal myconn As Object)<br />

Set mConn = myconn<br />

End Property<br />

Public Sub DoCallback()<br />

mConn.EvaluateNoReturn "cat(""DoCallback: " & Text & "\n"")"<br />

End Sub<br />

� R code<br />

x

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

Saved successfully!

Ooh no, something went wrong!