I think R is great and I would really like to use it generate graphics from my 
VB.NET application, but I am having a really hard time trying to get it work. 
It appears to run ok, but I can't generate any plots at all, either directly to 
the web page or to a plot file.  Looking through the list it appears that 
others have trodden this path before me, so I am hoping that someone can help 
me get on the right track. 
 
I am using Microsoft Visual Studio .NET 2003,  R V 2.6.1 and R(D)COM Server 
V1.35.
 
The test code I am using is:
 Dim xconnector As STATCONNECTORSRVLib.StatConnector
        xconnector = New STATCONNECTORSRVLib.StatConnector
        xconnector.Init("R")
        Dim StatConnectorGraphicsDevice1 As New StatConnectorGraphicsDevice
  Dim mygfx As StatConnectorGraphicsDevice
        mygfx = StatConnectorGraphicsDevice1
        xconnector.AddGraphicsDevice("mygfx", 
StatConnectorGraphicsDevice1.GetGFX())
        xconnector.EvaluateNoReturn("plot(sin(1:100))")
        xconnector.RemoveGraphicsDevice("gfx")
        xconnector.EvaluateNoReturn("Finish")
        xconnector.Close()

With initial Imports statements:
 
Imports STATCONNECTORCLNTLib
Imports STATCONNECTORSRVLib
Imports StatConnControls.GraphicsDeviceClass
 
The Build is ok and everything appears to execute ok, but no plot. Any ideas 
please?
 

<<winmail.dat>>

_______________________________________________
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