[Rd] seeing feedback when R CMD check pkg runs unit tests.

From: Mario Frasca <mario.frasca_at_nelen-schuurmans.nl>
Date: Fri, 02 Mar 2012 16:49:45 +0100


ink1">good day here,

I'm maintaining a couple of R modules, both on r-forge.

tests for these modules are written making use of unit testing, and I make use of the svUnit module, part of SciViews-R.

I also make use of examples in the .Rd files.

my question regards 'R CMD check pkg'.

if an _example_ is not run correctly, I get clear feedback on the command line where I run 'R CMD check pkg'. _unit tests_ on the other hand may give failure or error, or may be marked as skipped. all these conditions are caught by the unit testing module that allows the unit testing script to produce a complete report.

if the unit testing module manages to run the tests, the report is generated and 'R CMD check pkg' will say "OK".

maybe you find here a more verbose description of the issue: http://stackoverflow.com/questions/2737680/ https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14702

very briefly: I'd like the check to include the possibility to issue a NOTE or a WARNING message, respectively for skipped and failing tests.

as I understood it, I can write my own check-my.R routine and use 'R CMD check-my pkg'.

but this way my modules would check-my (on my system) differently than they would check, say, on r-forge. r-forge would tell me my module is all right for releasing even if it has failing unit tests.

let me exaggerate: doesn't this sound to you as if unit testing was discouraged by R?

many thanks for all replies,
MF



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 02 Mar 2012 - 15:54:46 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 03 Mar 2012 - 01:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive