Hello Java World! A Tutorial for Interfacing to Java Archives inside R Packages
This document provides detailed guidance on interfacing R to Java archives inside an R package. The package we will create in this tutorial, the hel- loJavaWorld package, will invoke a very simple Java class, the HelloJavaWorld class, from inside an R function of the package, the helloJavaWorld function. The objective is to help other people to make available Java algorithms to the R world, be it to compare results, or for their own sake.
We create a folder, helloJavaWorld, which will be the root folder of our helloJavaWorld package. For detailed information on R packages and their structure, the reader is referred to the Writing R Extensions manual. This section only highlights elements that are relevant to our situation. Before detailing the contents of the individual files and folders, we provide a summary overview in Figure 1.
DESCRIPTION Inside this folder, we create DESCRIPTION file, which can be considered to be the ‘identity card’ of the package. The most important changes when comparing to regular DESCRIPTION files are that.
Get pdf download Hello Java World! A Tutorial for Interfacing to Java Archives inside R Packages
Related Tutorial
Tags: description files, elements, figure 1, folders, guidance, interfacing, java algorithms, java archives, java class, java world, objective, r world, root folder, sake, summary overview
Comments
Leave a Reply