[Rcpp-commits] r3198 - pkg/Rcpp/inst/examples/Misc
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Sep 13 20:17:21 CEST 2011
Author: edd
Date: 2011-09-13 20:17:20 +0200 (Tue, 13 Sep 2011)
New Revision: 3198
Modified:
pkg/Rcpp/inst/examples/Misc/fibonacci.r
Log:
load compiler package to use cmpfun()
Modified: pkg/Rcpp/inst/examples/Misc/fibonacci.r
===================================================================
--- pkg/Rcpp/inst/examples/Misc/fibonacci.r 2011-09-13 17:13:04 UTC (rev 3197)
+++ pkg/Rcpp/inst/examples/Misc/fibonacci.r 2011-09-13 18:17:20 UTC (rev 3198)
@@ -9,6 +9,9 @@
## inline to compile, load and link the C++ code
require(inline)
+## byte compiler
+require(compiler)
+
## we need a pure C/C++ function as the generated function
## will have a random identifier at the C++ level preventing
## us from direct recursive calls
More information about the Rcpp-commits
mailing list