From 979b57e848203afaf328df31994b4bf90aaa1419 Mon Sep 17 00:00:00 2001 From: HannesOberreiter Date: Wed, 28 Jul 2021 14:12:47 +0200 Subject: [PATCH] Update Rcpp.Rmd --- Rcpp.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rcpp.Rmd b/Rcpp.Rmd index 8d7372074..d0053eade 100644 --- a/Rcpp.Rmd +++ b/Rcpp.Rmd @@ -344,7 +344,7 @@ bench::mark( NB: If you run this code, you'll notice that `meanC()` is much faster than the built-in `mean()`. This is because it trades numerical accuracy for speed. -For the remainder of this chapter C++ code will be presented stand-alone rather than wrapped in a call to `cppFunction`. If you want to try compiling and/or modifying the examples you should paste them into a C++ source file that includes the elements described above. This is easy to do in RMarkdown: all you need to do is specify `engine = "Rcpp"`. +For the remainder of this chapter C++ code will be presented stand-alone rather than wrapped in a call to `cppFunction`. If you want to try compiling and/or modifying the examples you should paste them into a C++ source file that includes the elements described above. This is easy to do in RMarkdown: all you need to do is inserting a `Rcpp` chunk or `r` chunk and specify `engine = "Rcpp"`, which are equivalent to `sourceCpp`. ### Exercises {#exercise-started}