Displaying 3 results from an estimated 3 matches for "setcharacteroutputdevice".
2001 Aug 12
1
R (D)COM automation server for windows, type mismatch?
...'CharDev' (of type StatConnectorCharacterDevice)
The code fragment working with them is:
Dim x As StatConnector
Dim gfxdev As ISGFX
Set x = New StatConnector
x.Init ("R")
Set gfxdev = Gfx1.GetGFX
x.AddGraphicsDevice "dev1", gfxdev ' <- this works
x.SetCharacterOutputDevice CharDev ' <- this does not
VBA stops with a type mismatch error.
Unfortunately this is consistent with what I can see in the object browser
tree:
The method SetCharacterOutputDevice requires an
IStatConnectorCharacterDevice but I only have an can get a StatConnectorCharacterDevice. (Where...
2004 Jun 24
0
Catching R's (D)COM output in perl
...ollect R's summary formatting as a string ------
my $summary = $R->Evaluate('summary(c(1,2,3))');
# ------------------------------------------------------------
I guess i have to figure out how to use the '"console" device (Active X
control)',
and maybe use $R->SetCharacterOutputDevice() in Perl but i was neither
getting this to work nor was i able to find the right spot containing
this information.
Does someone have a clue?
Thanks in advance,
Stefan
----------------
Stefan Etschberger
Institut f??r Statistik und Mathematische Wirtschaftstheorie
Universit??t Augsburg
D-86135...
2008 Sep 25
0
C++ & R: Displaying a lattice graphic using D Com
...geBox("Error querying Dispatch from Character Device");
return;
}
if(FAILED(lConnector.CreateDispatch(_T("StatConnectorSrv.StatConnector"))))
{
MessageBox("Error creating StatConnectorSrv");
return;
}
lConnector.Init(_T("R"));
lConnector.SetCharacterOutputDevice(lCharDev);
lConnector.AddGraphicsDevice(_T("Gfx"),m_GraphDev.GetGFX());
lConnector.EvaluateNoReturn(_T("require(lattice)"));
lConnector.EvaluateNoReturn(_T("x <- seq(-pi, pi, len = 20)"));
lConnector.EvaluateNoReturn(_T("y <- seq(-pi, pi, len = 20)&q...