.CallOctave
calls an Octave function and returns
its value..CallOctave(.NAME, ..., argout = -1,
unlist = !is.character(argout), buffer.std = 3L)
The default value argout=-1
returns:
argout
.TRUE
output/errors/warnings are displayed at the end of the
computation. If FALSE
they are directly displayed
by Octave. It is also possible to sele# data matrix
x <- matrix(1:9, 3)
# call Octave function 'svd': equivalent to [S] = svd(x). See o_help(svd)
.CallOctave('svd', x)
# call Octave function 'svd' asking for 3 output values: [U, S, V] = svd(x)
.CallOctave('svd', x, argout=3)
# call Octave function 'svd' asking for 3 named output values: [U, S, V] = svd(x)
.CallOctave('svd', x, argout=c('U', 'S', 'V'))
Run the code above in your browser using DataLab