-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patho_ls.Rd
68 lines (60 loc) · 2.25 KB
/
o_ls.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
57
58
59
60
61
62
63
64
65
66
67
68
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eval.R
\name{o_ls}
\alias{o_ls}
\title{Listing Objects from the Current Octave Session
The function \code{o_ls} is an enhanced listing function, which
also lists user-defined functions, as opposed to \code{\link{o_who}} or
\code{\link{o_whos}}, which only list variables.
Note that this function works properly on Octave >= 3.6.1, but is known
not to list user-defined functions on Octave 3.4.1 (for some unknown reason the
Octave function \code{completion_matches} does not return the names of
user-defined functions).}
\usage{
o_ls(long = FALSE, rm.ans = TRUE)
}
\arguments{
\item{long}{logical that indicates the desired type of output: if \code{FALSE}
(default) then only the names of the variables are returned (like dispatched
\code{o_who}), otherwise a list with more detailed information about
each variable is returned (like \code{\link{o_whos}}.}
\item{rm.ans}{a logical that indicates if the automatic Octave variable \code{ans}
should be included in the result. Default (\code{TRUE}) is not to include it.}
}
\value{
a character vector or a list depending on the value of argument
\code{long}.
}
\description{
Listing Objects from the Current Octave Session
The function \code{o_ls} is an enhanced listing function, which
also lists user-defined functions, as opposed to \code{\link{o_who}} or
\code{\link{o_whos}}, which only list variables.
Note that this function works properly on Octave >= 3.6.1, but is known
not to list user-defined functions on Octave 3.4.1 (for some unknown reason the
Octave function \code{completion_matches} does not return the names of
user-defined functions).
}
\examples{
\dontshow{
options(R_CHECK_RUNNING_EXAMPLES_=TRUE) ## roxygen generated flag
}
\dontshow{ o_clear(all=TRUE) }
# only variables
o_assign(list(a=1, b=2, c=5))
o_ls()
# compare with the output of standard Octave functions
o_who() # should be the same output
o_whos()
# variables and user-defined functions
o_clear(all=TRUE) # first clear Octave session
o_source(system.file('scripts/ex_source.m', package='RcppOctave'))
o_ls()
o_ls(long=TRUE)
# compare with the output of standard Octave functions
o_who()
o_whos()
}
\seealso{
Other listoct: \code{\link{o_whos}}, \code{\link{o_who}}
}