-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathrcppoctave.Rd
40 lines (33 loc) · 852 Bytes
/
rcppoctave.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interface.R
\name{rcppoctave}
\alias{rcppoctave}
\title{inline C++ Function with Octave Integration}
\usage{
rcppoctave(..., plugin = "RcppOctave")
}
\arguments{
\item{...}{arguments passed to \code{\link[inline]{cxxfunction}}}
\item{plugin}{Name of the plugin to use. See \code{\link[inline]{getPlugin}} for
details about plugins.}
}
\description{
inline C++ Function with Octave Integration
}
\examples{
\dontshow{
options(R_CHECK_RUNNING_EXAMPLES_=TRUE) ## roxygen generated flag
}
# 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) )
}