Description Usage Arguments Examples
inline C++ Function with Octave Integration
1 | rcppoctave(..., plugin = "RcppOctave")
|
... |
arguments passed to |
plugin |
Name of the plugin to use. See |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # call from R
set.seed(1)
res1 <- .O$rand(10)
# call from c++
feval <- RcppOctave:::rcppoctave(signature(), '
Rcpp::List args = Rcpp::List::create(10);
SEXP result = CallOctave("rand", args);
return(result);
')
set.seed(1)
res2 <- feval()
stopifnot( identical(res1, res2) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.