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)
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...
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
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.
5 Comments
Local Administrator
This will be VERY useful to display graphics within Uniface application... Anyone have an idea ? Thank you
Author: cabero (daniel.cabero@euralis.com)
Local Administrator
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.
see: http://stat.ethz.ch/R-manual/R-devel/library/utils/html/Rscript.html
Scripting Front-End for R
Description
This is an alternative front end for use in #! scripts and other scripting applications.
Usage
Author: ulrich-merkel (ulrichmerkel@web.de)
Local Administrator
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)
Local Administrator
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)
Local Administrator
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)