[R] (D)COM

Amy C. Peng apeng at emmes.com
Fri Jan 28 21:11:14 CET 2000


Here are two questions regarding use of (D)COM:

1)  In the documentation it says to fire up R using the Init member of
StatConnector, i.e., x.Init("R"), where x is an instance of StatConnector.
However, I need to increase the heap memory before I start up R.  Is there
any way to incorporate the "--vsize" command line options using Init?

2)  How do I use the AddGraphicsDevice member of StatConnector?  (I am
trying to use this in Excel).  I assume that AddGraphicsDevice will allow
me to open up an R graphics window while still in Excel?  I tried to create
an instance of IStatConnectorGraphicsDevice to use as input for
AddGraphicsDevice, but I got a compiler error message that said "Invalid
use of New keyword".

3)  I noticed that if I use the Evaluate member of StatConnector to create
a plot, such as x.Evaluate("plot(1:10,1:10"), where x as an instance of
StatConnector, it opens up an R graphics device for me, but the graphics
device disappears after a few seconds.  How can I control the graphics
device to make it stay awhile until I'm ready for it to go away?

By the way, is there more documentation available on the members used in
StatConnector?  I've been using the VBE Object Browser to look up
information on classes, types, subs and functions, but this still leaves me
a little confused ...

Thanks in advance for your help!

Sincerely,
Amy Peng

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list