From gavin.simpson at ucl.ac.uk  Wed Jun 30 09:58:50 2010
From: gavin.simpson at ucl.ac.uk (Gavin Simpson)
Date: Wed, 30 Jun 2010 08:58:50 +0100
Subject: [Rd] Tips for debugging: R CMD check examples
Message-ID: <1277884730.7384.4.camel@desktop.localdomain>

[Apologies for breaking the thread, I deleted the message before
starting this reply]

Dear Hadley,

R CMD check produces a foo-Ex.R file where foo is the package name. You
could start by sourcing that file in R --vanilla and see where it fails
and also use standard debugging tools in R from there (i.e. drop into a
debugger on error).

HTH

G
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



[Rd] Tips for debugging: R CMD check examples
Gavin Simpson