get_matlab: Find matlab path
Description
This tries to find matlab's path using a system which
command, and then, if not found, looks at getOption("matlab.path")
. If not path is found, it fails.
Usage
get_matlab(try_defaults = TRUE, desktop = FALSE, splash = FALSE,
display = FALSE, wait = TRUE, single_thread = FALSE)
Arguments
try_defaults
(logical) If matlab
is not found from
Sys.which
, and matlab.path
not found, then try some
default PATHs for Linux and OS X.
desktop
Should desktop be active for MATLAB?
splash
Should splash be active for MATLAB?
display
Should display be active for MATLAB?
wait
Should R wait for the command to finish. Both
passed to system
and adds the -wait
flag.
single_thread
Should the flag -singleCompThread
be executed to limit MATLAB to a single computational thread?
Value
Character of command for matlab
Examples
Run this code# NOT RUN {
if (have_matlab()) {
get_matlab()
}
# }
Run the code above in your browser using DataLab