Skip to content
Back to formatted view

Raw Message

Message-ID: <20027.13478.390688.802787@max.nulle.part>
Date: 2011-08-05T00:09:10Z
From: Dirk Eddelbuettel
Subject: [Rcpp-devel] Question for the Rcpp
In-Reply-To: <CAHA9McNKr02vgpMih0joaiGkZVwLf0NeRSoNx0+Df9o0K=BERQ@mail.gmail.com>

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

-- 
Gauss once played himself in a zero-sum game and won $50.
                      -- #11 at http://www.gaussfacts.com