-
Notifications
You must be signed in to change notification settings - Fork 1
/
get_matlab.Rd
35 lines (31 loc) · 998 Bytes
/
get_matlab.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matlab_script.R
\name{get_matlab}
\alias{get_matlab}
\title{Find matlab path}
\usage{
get_matlab(try_defaults = TRUE, desktop = FALSE, splash = FALSE,
display = FALSE, wait = TRUE)
}
\arguments{
\item{try_defaults}{(logical) If \code{matlab} is not found from
\code{Sys.which}, and \code{matlab.path} not found, then try some
default PATHs for Linux and OS X.}
\item{desktop}{Should desktop be active for MATLAB?}
\item{splash}{Should splash be active for MATLAB?}
\item{display}{Should display be active for MATLAB?}
\item{wait}{Should R wait for the command to finish. Both
passed to \code{\link{system}} and adds the \code{-wait} flag.}
}
\value{
Character of command for matlab
}
\description{
This tries to find matlab's path using a system which
command, and then, if not found, looks at \code{getOption("matlab.path")}. If not path is found, it fails.
}
\examples{
if (have_matlab()) {
get_matlab()
}
}