Learn R Programming

rscala (version 1.0.15)

scalaSettings: Changes the runtime behavior of an embedded interpreter.

Description

This function either: i. modifies the runtime behavior of an interpreter for arguments that are not null or ii. when the only supplied argument is an interpreter instance, the current values of the settings are given. The values set here may be superseded by optional arguments in particular function calls.

Usage

scalaSettings(interpreter, interpolate=NULL, length.one.as.vector=NULL)

Arguments

interpreter
An interpreter from an interpreter constructor (i.e. scala).
interpolate
A logical vector of length one setting the default behavior when a character vector is passed to the interpreter. If TRUE, the interpreter will call strintrplt on the supplied code before running it (unless the default behavior set here is overridden for a particular function call).
length.one.as.vector
A logical vector of length one providing the default behavior when setting an R vector of length one. If TRUE, setting a vector of length one in the interpreter will result in an array of length one. If FALSE, setting a vector of length one results in an atomic value. For example, pi is a vector of length one in R and, when set in an interpreter, would result in an array of doubles of length one if length.one.as.vector is TRUE or a double if length.one.as.vector is FALSE. The default behavior set here can be overridden for a particular function call.

See Also

scala, scalaEval, scalaSet, scalaGet, scalaDef, strintrplt