-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathoctave_config.Rd
54 lines (47 loc) · 1.8 KB
/
octave_config.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interface.R
\name{octave_config}
\alias{octave_config}
\title{Octave Utils: octave-config}
\usage{
octave_config(varname, verbose = FALSE, warn = TRUE, mustWork = TRUE,
exec = c("octave-config", "mkoctfile"), bindir = Octave.home("bin"))
}
\arguments{
\item{varname}{Name (as a character string) of the Octave configuration
variable to retrieve. It is used in following system call
\samp{octave-config -p <varname>}.
This function is vectorised and returns a character vector of the same length
as its argument.}
\item{verbose}{logical that toggles verbose messages.}
\item{warn}{logical that indicates if a warning should be thrown when a
variable is returned empty, which generally means that \code{x} is not a valid
config variable name.}
\item{mustWork}{logical that indicates if an error should be thrown if failing
to load Octave configuration.}
\item{exec}{name of the executable to query}
\item{bindir}{path to Octave bin/ sub-directory where to look for \code{octave-config}.
If \code{NULL} or \code{NA}, then the system PATH is looked up.}
}
\description{
Retrieves Octave configuration variables using \code{octave-config}.
}
\details{
\code{octave_config} uses the \code{octave-config} utility binary shipped with
Octave to query details about the local Octave installation.
Failure to retrieve such information is generally due to the binary
not being found.
By default, it is looked up in the \code{bin/} sub-directory of the path
returned by \code{\link{Octave.home}()}.
}
\examples{
\dontshow{
options(R_CHECK_RUNNING_EXAMPLES_=TRUE) ## roxygen generated flag
}
octave_config('VERSION')
octave_config('BINDIR')
}
\seealso{
Other Octave.info: \code{\link{Octave.config}},
\code{\link{Octave.home}}, \code{\link{o_config_info}}
}