The RDCOMServer Package
The RDCOMEvents Package (version 0.3-1)
This package provides a mechanism for connecting one or more R functions to a DCOM event source, such as Excel, Word, and many more applications. This allows R users to programmatically respond to activities and specified events in other applications using pure R code. Examples include:- We can display data in a new plot when an Excel user switches between worksheets.
- When the Excel user selects one or more rows in the sheet, color the corresponding points in an R plot.
- responding to updates and changes to data stored in an Abstract Data Object (ADO) component.
- We can also use the RDCOMClient package to create new controls in another application such as buttons in a toolbar, a slider, etc. and catch the action events on these components in R to customize what should happen.
This package can be used along with the RDCOMClient package which provides user-level access from S to other COM servers. The ability to export S objects as COM values is important for general bi-directional connectivity with other COM clients.
Additionally, the RDCOMServer package provides facilities for defining COM classes implemented with R functions. And the supporting packages SWinRegistry and SWinTypeLibs provide the infrastructure for connecting R to the entire COM mechanism.
The facilities provided in this suite of packages are more general than those provided via the RCOM package by Thomas Baier. The model is more general and allows a more complete set of computations on different data types and also hides the R language from the client software connecting to it. The generality may make the interface appear more complicated and slightly more indirect. We believe that it is necessary and relatively simple for developing non-trivial applications involving DCOM components and R.
Downloads
You can get binaries for these and install them simply by
unzipping them from within in the $R_HOME/library
directory.
Documentation
This package was split out of the RDCOMServer package. Some of the documentation remains there for the moment.Examples
There are some examples in theexamples/
.
Duncan Temple Lang <duncan@wald.ucdavis.edu> Last modified: Sun Apr 17 08:13:14 PDT 2005