Uniface Integration with R

Author: daniel.cabero@euralis.com (cabero)

Does anyone have an experience on Integration of R script programs within Uniface application, using DCOM or WebServices ? Thanks for any help Daniel


  1. This will be VERY useful to display graphics within Uniface application... Anyone have an idea ? Thank you

    Author: cabero (daniel.cabero@euralis.com)
  2. Hi Daniel, at least you can use spawn to start the rscript tool to create some output file. Then you can use an approptiate viewer to display the generated file.

    OR: you can open up a complete RStudio using spawn (depends what you need)


    see: http://stat.ethz.ch/R-manual/R-devel/library/utils/html/Rscript.html

    Scripting Front-End for R


    This is an alternative front end for use in #! scripts and other scripting applications.


    Rscript [options] [-e expr [-e expr2 ...] | file] [args]

    Author: ulrich-merkel (ulrichmerkel@web.de)
  3. Thank you Ulrich for your response. But my idea was to directly access to the datas retrieved in an Uniface grid , with R script. (with DCom or whatelse ... any idea ?) So that to avoid to export data in files from Uniface (which is not so good : compose a flat file with the filedump function is very long  !!) and after import theses files in R script...

    Author: cabero (daniel.cabero@euralis.com)
  4. As far as I have seen, "R" is not a windows based product and has no ActiveX, DCOM etc. abilities. I'm pretty aware what you are after, but using spawn is a way you can invoke the Rscript application from inside Uniface. BTW: creating a flat file is reasonably fast, all you have to avoid is a multitude of appends of very small chunks to the file

    Author: ulrich-merkel (ulrichmerkel@web.de)
  5. Hi, Google "RTVS - R Tools for Visual Studio". "No, it is not a .NET implementation of R. We simply provide tools for R in Visual Studio (editor, interactive window, plotting, debugger, etc). You do can use .NET languages from R or invoke R from .NET via open source libraries like R.Net and rClr." As the support for R is improved in VS there shouldn't be that difficult to integrate with Uniface. Either via C# or C, or den somehow directly. However I have no experience of it. Regards RogerW. 

    Author: rogerw (roger.wallin@abilita.fi)