-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patho_load.Rd
50 lines (39 loc) · 1.16 KB
/
o_load.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eval.R
\name{o_load}
\alias{o_load}
\title{Loading Variables into Octave}
\usage{
o_load(from, ..., options)
}
\arguments{
\item{from}{a list or an environment from where the objects should be loaded}
\item{...}{names of the variables to load}
\item{options}{argument passed to the Octave function \code{load}. See section
\emph{Octave Documentation}.}
}
\description{
Loads variables from a file, a list or an environment.
}
\section{Octave Documentation for \emph{load}}{
\Sexpr[results=rd,stage=render]{if( .Platform$OS.type != 'windows' || .Platform$r_arch != 'x64' ) RcppOctave::o_help(load, format='rd')}
\emph{[Generated from Octave-\Sexpr{RcppOctave::o_version()} on \Sexpr{Sys.time()}]}
}
\examples{
\dontshow{
options(R_CHECK_RUNNING_EXAMPLES_=TRUE) ## roxygen generated flag
}
# 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)
}