Skip to content
Back to formatted view

Raw Message

Message-ID: <CAHA9McNKr02vgpMih0joaiGkZVwLf0NeRSoNx0+Df9o0K=BERQ@mail.gmail.com>
Date: 2011-08-04T23:18:56Z
From: Steve Lianoglou
Subject: [Rcpp-devel] Question for the Rcpp
In-Reply-To: <CAPZUjw8nQfcHU3HoE=RKVJ-DULjmLjsHnFeTzB+zczfmNawFLA@mail.gmail.com>

Hi,

On Thu, Aug 4, 2011 at 4:00 PM, Yi Zhao <zhaoyitj2010 at gmail.com> wrote:
> Dear,
>
> I have written a package with Rcpp. Now I need to test how fast is the
> function that I 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 also is there any instruction to write a help file for R function?

you might consider using roxygen (or the upcoming roxygen2) for R docs.

http://roxygen.org/
https://github.com/klutometis/roxygen

-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
?| Memorial Sloan-Kettering Cancer Center
?| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact