MatlabInit: Start or stop a Matlab engine from R

Description Usage Arguments Value Author(s) References See Also Examples

Description

These functons create or close a Matlab session from within R that can be used to evaluate Matlab commands and manage the Matlab workspace directly from R.

Usage

1
2
.MatlabInit(args = "\0 -nojvm -nosplash -nodisplay")
.MatlabClose(engine)

Arguments

args

the command line used to start Matlab. See the documentation for the Matlab routine engOpen in the Matlab Engine API for details. On Microsoft Windows, this is ignored. One can create the matlab session in different ways, on different machines, etc. using these arguments.

engine

the MatlabEngine object that is a reference to the engine to be closed.

Value

An object of class MatlabEngine that is a reference to the C-level data structure that represents the engine. This is used in the other .Matlab functions to identify the particular engine.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

Matlab External Interface Guide, the Engine API. Matlab User's Guide

See Also

.MatlabEval .MatlabPut .MatlabGet

Examples

1
2
3
4
## Not run: 
 .MatlabInit()

## End(Not run)

omegahat/RMatlab documentation built on May 24, 2019, 1:54 p.m.