There was an error while loading. Please reload this page.
1 parent e82f367 commit 56f6553Copy full SHA for 56f6553
1 file changed
inst/examples/Misc/fibonacci.r
@@ -22,9 +22,9 @@ int fibonacci(const int x) {
22
## now use the snipped above as well as one argument conversion
23
## in as well as out to provide Fibonacci numbers via C++
24
fibRcpp <- cxxfunction(signature(xs="int"),
25
- plugin="Rcpp",
26
- incl=incltxt,
27
- body='
+ plugin="Rcpp",
+ incl=incltxt,
+ body='
28
int x = Rcpp::as<int>(xs);
29
return Rcpp::wrap( fibonacci(x) );
30
')
0 commit comments