o_load: Loading Variables into Octave

Description Usage Arguments Octave Documentation for load Examples

View source: R/eval.R

Description

Loads variables from a file, a list or an environment.

Usage

1
o_load(from, ..., options)

Arguments

from

a list or an environment from where the objects should be loaded

...

names of the variables to load

options

argument passed to the Octave function load. See section Octave Documentation.

Octave Documentation for load

\Sexpr[results=rd,stage=render]{if( .Platform$OS.type != 'windows' || .Platform$r_arch != 'x64' ) RcppOctave::o_help(load, 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
# Loading from a MATLAB/Octave file
#o_load

# Loading from an R list
o_clear()
l <- list(a=1, b=20, c=runif(10), d="this is a string", e=matrix(1:15, 3, 5))
o_load(l)

# Loading from an R environment
o_load( list2env(l) )

# Partial loading
o_clear()
o_load(l, a, b, c)
o_clear()
o_load(list2env(l), d, e)

renozao/RcppOctave documentation built on May 27, 2019, 5:52 a.m.