Description Usage Arguments Value Octave Documentation for source See Also Examples
View source: R/base-functions.R
This function sources an Octave file within the current Octave session.
The loaded functions are accessible by subsequent calls of
.CallOctave
.
1 |
file |
the path to the Octave/Matlab source file – typically with extension ".m". |
text |
a character vector containing Octave statements, that are
concatenated in a temporary file, which is then sourced.
This argument typically enables the evaluation of multiple statements, as
opposed to single statement evaluation performed by |
sep |
single character string added as suffix to each element of
|
... |
other arguments passed to |
None
[Generated from Octave-\Sexpr{RcppOctave::o_version()} on \Sexpr{Sys.time()}]
Other Octave_files: o_addpath
1 2 3 4 5 6 7 8 9 10 11 | # source file
mfile <- system.file("scripts/ex_source.m", package='RcppOctave')
o_source(mfile)
# pass multiple statements
o_source(text="a=1;b=3;c=randn(1,5);")
o_get('a','b','c')
# also works with a character vector of statements
o_source(text=c("a=10;b=30;", "c=randn(1,5)", "d=4"))
o_get('a','b','c', 'd')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.