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}