I’ve published a new package on CRAN called “rDotNet”. The package allows one to call to .NET based code seamlessly from R, with .NET objects appearing as S4-style object proxies in the R session. A similar package using this framework was made available for Python as well. From R one can:
1. Create an instance of any .NET type (whether C#, F#, or otherwise)
2. Call methods on a type
3. Call functions (static methods / functions in modules)
4. Get / Set properties
One interacts with the package as:
## optional initialization (dll location can also be set with an environment var)
Finally, the package has been tested on OS X (where I do most of my work), Linux, and Windows. Note that for unix systems “mono” or .NET core must be installed. See the installation instructions for more information.