Learn R Programming

RcppOctave (version 0.18.1)

o_clear: Deleting Octave Variables

Description

Deletes variables from Octave global context.

The function o_rm is an alias to o_clear.

Usage

o_clear(..., all = FALSE, options)

o_rm(..., all = FALSE, options)

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 <em>clear</em>

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

[Generated from Octave-RcppOctave::o_version() on Sys.time()]

# roxygen generated flag options(R_CHECK_RUNNING_EXAMPLES_=TRUE)

o_clear() # Assign a variable in Octave o_assign('a', 10) o_who() identical(o_who(), 'a') # Clear o_clear() o_who() identical(o_who(), character())

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

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