From deepayan.sarkar at gmail.com  Wed Jun 30 10:05:07 2010
From: deepayan.sarkar at gmail.com (Deepayan Sarkar)
Date: Wed, 30 Jun 2010 13:35:07 +0530
Subject: [Rd] Tips for debugging: R CMD check examples
In-Reply-To: <AANLkTilQ9vYlaqXLQTeFjVfvzuQRsZ1uEX5x9_3EtI5D@mail.gmail.com>
References: <AANLkTilQ9vYlaqXLQTeFjVfvzuQRsZ1uEX5x9_3EtI5D@mail.gmail.com>
Message-ID: <AANLkTimtoYO3ADZJkLZQ4YxEho8ucWQ9wwZI_7b77B9T@mail.gmail.com>

On Wed, Jun 30, 2010 at 3:26 AM, Hadley Wickham <hadley at rice.edu> wrote:
> Hi all,
>
> Does anyone have any suggestions for debugging the execution of
> examples by R CMD check? ?The examples work fine when I run them from
> a live R prompt, but I get errors when they are run by R CMD check.

'R CMD check pkg' will produce a pkg.Rcheck/pkg-Ex.R file that
collects the examples into a single file (and also does other things).
You could try running that file interactively to see if the error is
reproduced.

-Deepayan



[Rd] Tips for debugging: R CMD check examples
Deepayan Sarkar