-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathOctave.home.Rd
56 lines (50 loc) · 1.69 KB
/
Octave.home.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/config.R
\name{Octave.home}
\alias{Octave.home}
\title{Octave Home Directory}
\usage{
Octave.home(..., configure = Octave.config[["customed"]], use.system = TRUE)
}
\arguments{
\item{...}{character strings that are appended to Octave path
via \code{\link{file.path}}.}
\item{configure}{logical that indicates if one should directly
return the path that was used when configuring (i.e. installing)
\pkg{RcppOctave}}
\item{use.system}{logical that indicates if one should try
using \code{octave-config} to retrieve Octave home directory.
This would be done as a last resort, if the path could not be
determined in any other ways (see \emph{Details}).}
}
\value{
a character string, or \code{NULL} if the path was not found.
}
\description{
Returns the path to Octave home directory, i.e. the directory that contains
the \code{bin/} sub-directory where Octave binaries can be found,
e.g., typically \code{/usr/} on Linux machines.
}
\details{
The path to Octave home directory is determined in the following
order:
\itemize{
\item value of global option \code{'octave.home'};
\item value of the environment variable \code{'OCTAVE_HOME'};
\item path used during configuration/installation of \pkg{RcppOctave}.
\item path returned by \code{octave-config}, which is itself looked up
in the system PATH.
}
If set, the global option or environment variable should contain
the \strong{absolute} path to Octave root directory.
}
\examples{
\dontshow{
options(R_CHECK_RUNNING_EXAMPLES_=TRUE) ## roxygen generated flag
}
Octave.home()
}
\seealso{
Other Octave.info: \code{\link{Octave.config}},
\code{\link{o_config_info}}, \code{\link{octave_config}}
}