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
© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.