<div dir="ltr">For me, there are two reasons to learn Rcpp:<div><br></div><div>1. Rcpp provides a straightforward way to speed up existed R script.<br><br>I answered 2 question of speeding up R code on StackOverflow with Rcpp:<div>

<br></div><div><a href="http://stackoverflow.com/questions/14495697/speeding-up-a-repeated-function-call/14495967#14495967">http://stackoverflow.com/questions/14495697/speeding-up-a-repeated-function-call/14495967#14495967</a></div>

<div><br></div><div>For this question, Rcpp is 140 times faster.<br><div><br></div><div><a href="http://stackoverflow.com/questions/14494964/how-to-find-nearby-integers-efficiently/14496071#14496071">http://stackoverflow.com/questions/14494964/how-to-find-nearby-integers-efficiently/14496071#14496071</a><br>

</div></div><div><br></div><div>For this question, Rcpp is 7x times faster.</div><div><br></div><div>The Rcpp way to speed up R code is so straightforward: re-implement the algorithm in C++ whose syntax is similar to R based on Rcpp. On the other hand, the R way to speed up R script requires sophisticated knowledge of R.</div>

<div><br></div><div>2. Rcpp makes it easy to integrate the existed C++/C library into R. Therefore, I could use more widely existed resources in my work.</div></div><div><br></div><div>Last year, we wrote a paper in only 1 month which proposed a very fast algorithm to find all unique substring in a long string. The algorithm was based on suffix tree, and I failed to find a package of suffix tree in R. (I notice that there is a package named Rlibstree in bioconductor) I found one library in C and exposed it quickly into R with Rcpp Module. </div>

<div><br></div><div>We release our code here: <a href="https://bitbucket.org/wush_iis/rsus">https://bitbucket.org/wush_iis/rsus</a><br><br>Rhiredis is another example.</div><div><br></div><div>---</div><div><br></div><div>

Hope it helps.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/1 Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
I'm giving a talk to the Chicago RUG that is limited to 30 mins, and I would<br>
like to include some nice examples (besides standards like Fibonacci and<br>
SimulatingPi).  The other talk is on ggplot(2), so the house may be full with<br>
new users / non-C++ hackers.<br>
<br>
What examples should I talk about?  Bonus points for links for list<br>
questions, StackOverflow questions, or Rcpp Gallery posts.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
<br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</font></span></blockquote></div><br></div>