Initializing help system before first use

I/O drivers

In order to simplify access to R this module provides a driver that is designed to be used in initializations blocks for both reading and writing data, providing the same functionalities as the Rget and Rset functions.

Driver rws

rws:

The driver can only be used in `initializations' blocks. It does not take any argument and provides access to the R workspace.

In the block, each label entry is understood as one or more R statements. For 'from' blocks, if the label contains more than one statement, the value from the last one is returned. For 'to' blocks, the label must contain only one expression.

This driver requires an existing R session, therefore it is necessary to initialize R (either by calling function Rinit or any of the other module functions that create an R session) before using it.

Example:

initok:=Rinit                   ! Initialize R
initializations to "r.rws:"     ! Send data to R
  scalarvar as "val"
  arrayvar  as "arr"
end-initializations
initializations from "r.rws:"   ! Get data from R
  backscalar as "val"
  backarr as "arr"
end-initializations