APL+Win and the R Statistics/Graphics Toolkit

General discussions related to using the C# Script Engine in APL+Win.

Moderators: Tech Support, phpbb_admin

APL+Win and the R Statistics/Graphics Toolkit

Postby joe_blaze » July 4th, 2014, 11:35 am

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.
Last edited by joe_blaze on April 18th, 2016, 6:50 pm, edited 4 times in total.
Reason: Adding additional attachments
joe_blaze
 
Posts: 384
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

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

Postby brent hildebrand » July 4th, 2014, 8:38 pm

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
      ^
brent hildebrand
 
Posts: 538
Joined: February 12th, 2007, 5:53 pm
Location: Loma Linda, CA

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

Postby joe_blaze » July 5th, 2014, 1:28 pm

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
joe_blaze
 
Posts: 384
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

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

Postby brent hildebrand » July 5th, 2014, 4:54 pm

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.
brent hildebrand
 
Posts: 538
Joined: February 12th, 2007, 5:53 pm
Location: Loma Linda, CA

APL+Win v16 and the R Statistics/Graphics Toolkit

Postby joe_blaze » April 18th, 2016, 12:48 am

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.
Attachments
APL+Win - R.Net - R Statistical & Graphics Tool - For APL+Win v13-15.zip
For x32 or x64 workstation hardware and Windows operating system
(1.08 MiB) Downloaded 429 times
APL+Win - R.Net - R Statistical & Graphics Tool - For APL+Win v16.zip
For x64 workstation hardware and Windows operating system
(1.06 MiB) Downloaded 435 times
joe_blaze
 
Posts: 384
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

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

Postby joe_blaze » August 6th, 2016, 6:29 am

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.
joe_blaze
 
Posts: 384
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361


Return to APL+Win & The C# Script Engine

Who is online

Users browsing this forum: No registered users and 11 guests

cron