o_clear: Deleting Octave Variables

Description Usage Arguments Value Octave Documentation for clear Examples

View source: R/eval.R

Description

Deletes variables from Octave global context.

The function o_rm is an alias to o_clear.

Usage

1
2
3

Arguments

...

names or pattern of the variables to delete, as character strings.

all

a logical indicating whether all user-defined objects should be deleted. See section Octave Documentation for details.

options

options passed to Octave function clear. See section Octave Documentation.

Value

None

Octave Documentation for clear

\Sexpr[results=rd,stage=render]{if( .Platform$OS.type != 'windows' || .Platform$r_arch != 'x64' ) RcppOctave::o_help(clear, format='rd')}

[Generated from Octave-\Sexpr{RcppOctave::o_version()} on \Sexpr{Sys.time()}]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# Assign a variable in Octave
o_assign('a', 10)
o_who()

# Clear
o_clear()
o_who()


# Assign other variables in Octave
.O$a <- 10
.O$b <- 100
.O$ba <- 1000
o_who()
o_get()


# Clear variable starting with 'b'
o_clear('b*')
o_who()

RcppOctave documentation built on May 29, 2017, 11:31 a.m.