Page 1 of 1

APL+Win and the R Statistics/Graphics Toolkit

PostPosted: July 4th, 2014, 11:35 am
by joe_blaze
R is a statistics and graphics toolkit. Its origin is the S language developed at Bell Laboratories. R provides a wide variety of statistics and graphics tools. R is available as no-cost, open source software under the terms of the Free Software Foundation's GNU General Public License. R is in wide use by many enterprises both public and private.

The statistics and graphics features of R are easily accessible from APL+Win using the □cse system function and the R.Net interface to R. R.NET is a .Net interface to the R toolkit. R.Net is composed of .Net assemblies which enable programs written using a .NET Framework programming language, e.g. C#, to collaborate with the R toolkit. R.Net is available as no-cost, open source software under the terms of its BSD license.

The APL+Win □cse system function is an interface to the APLNext C# Script Engine (CSE). Using the □cse system function, APL+Win can execute CSE scripts, employing the R.Net assemblies, to use the R toolkit.

Re: APL+Win and the R Statistics/Graphics Toolkit

PostPosted: July 4th, 2014, 8:38 pm
by brent hildebrand
I think I have all the necessary tools installed. .Net framework, 4.5, Installed R. Workspace and DLLs in same folder and current directory set to that folder, but when I run the InitREngine, I get the following:
Code: Select all
      InitREngine
InitREngine failed: CSE ERROR: Dll was not found.
InitREngine[36]  sink←⎕cse 'ExecStmt' 'REngine rEng =REngine.CreateInstance("APLNextR");'
                      ^
      InitREngine
      ^

Re: APL+Win and the R Statistics/Graphics Toolkit

PostPosted: July 5th, 2014, 1:28 pm
by joe_blaze
Hi Brent,

Is the R software installed? The license for R does not permit a 3rd party to distribute their software, so one has to download it from one of the R software mirror sites, e.g. http://watson.nci.nih.gov/cran_mirror/.

The R software is distinct from the R.Net software which we can and did include in the .zip file. The R.Net software can be copied to the application folder so that they can be loaded directly, but the R software needs to be installed using its installer.

If the R software is properly installed and the error still persists, check that the version of the R software installed matches the version which is specified in the 'InitREngine' APL+Win function in the workspace.

The other issue may be that Microsoft Windows security 'blocked' the use of the R.Net dlls, so from their properties context menus they may have to be 'unblocked'.

Joe

Re: APL+Win and the R Statistics/Graphics Toolkit

PostPosted: July 5th, 2014, 4:54 pm
by brent hildebrand
Thank you Joe - My problem was the the path in InitREngine. I have not updated it to my version of R.

[30] sink←⎕cse 'ExecStmt' 'string rBinPath = @"C:\Program Files\R\R-3.1.0\bin\i386";'

Working fine now.

APL+Win v16 and the R Statistics/Graphics Toolkit

PostPosted: April 18th, 2016, 12:48 am
by joe_blaze
R is a statistics and graphics toolkit. Its origin is the S language developed at Bell Laboratories. R provides a wide variety of statistics and graphics tools. R is available as no-cost, open source software under the terms of the Free Software Foundation's GNU General Public License. R is in wide use by many enterprises both public and private.

The statistics and graphics features of R are easily accessible from APL+Win using the □cse system function and the R.Net interface to R. R.NET is a .Net interface to the R toolkit. R.Net is composed of .Net assemblies which enable programs written using a .NET Framework programming language, e.g. C#, to collaborate with the R toolkit. R.Net is available as no-cost, open source software under the terms of its BSD license.

The APL+Win □cse system function is an interface to the APLNext C# Script Engine (CSE). Using the □cse system function, APL+Win can execute CSE scripts, employing the R.Net assemblies, to use the R toolkit.

The attached zip-format file contains:
    A pdf-format file documenting the APL+Win interface to R
    An APL+Win workspace containing sample functions illustrating the APL+Win interface to R
    The R.Net assemblies implementing the C# interface to R

The prototype APL+Win interface to R was presented to attendees of the APL2000 2012 Conference in Jersey City NJ. The current APL+Win interface to R, now available here, was presented to attendees of the APL2000 2014 Conference in Ft. Lauderdale FL.

Re: APL+Win and the R Statistics/Graphics Toolkit

PostPosted: August 6th, 2016, 6:29 am
by joe_blaze
The APLNext R-interface has been tested with APL+Win v16.1.01 and the R Toolkit version 3.3.1

The APLNext R-interface components are available on the APL2000 Forum here.

The R Toolkit installer is available here: https://cran.cnr.berkeley.edu/. Uninstall the prior version of the R Toolkit before installing a newer version. The R license does not permit developers to distribute the R Toolkit installer, hence it must be downloaded from one of the R mirror websites listed here: https://www.r-project.org/, such as the berkeley.edu website. R Toolkit version 3.3.1 may be replaced with a subsequent version at any time by the developers of R [not APL2000 or APLNext] and compatibility with a newer version should be tested. Prior versions of the R Toolkit installer are also available here https://cran.cnr.berkeley.edu/.

The RDotNet component, which is distinct from the R Toolkit installer, is included in the APLNext R-interface components .zip format file.

Proper coordination among the APLNext R-interface components, including the R Toolkit, is necessary for proper operation. Read the prerequisites in the 'APL+Win - R.Net - R Statistical & Graphics Tool.pdf' document included in the APLNext R-interface components .zip-format file.