Skip to content
Prev 2684 / 10988 Next

[Rcpp-devel] Question for the Rcpp

On 4 August 2011 at 19:18, Steve Lianoglou wrote:
| On Thu, Aug 4, 2011 at 4:00 PM, Yi Zhao <zhaoyitj2010 at gmail.com> wrote:
| > I am wondering to know is there any function or tools to show the time that
| > it cost?
| 
| Doug has already mentioned rbenchmark, which is handy:
| http://cran.r-project.org/web/packages/rbenchmark/index.html

And we almost constantly post examples using it here on the list so the list
archives should have plenty of working samples.
 
| > And also is there any instruction to write a help file for R function?

Besides the official manual ("Writing R Extensions") mentioned by Doug, there
are also 3000+ packages on CRAN you can study.  Pick one you know and like
and see how it does it. Read the Manual for background too.

Dirk