Re: [Rd] Should demo files be run as part of R CMD check?

From: hadley wickham <>
Date: Mon 10 Apr 2006 - 13:38:22 GMT

> > The rationale may be that a demo is entitled to assume it is being run
> > interactively. Checking demo(tkdensity), for example, would be
> > unproductive.
> Also, it is easy for a package author to arrange to check the demos by a
> test in the package's tests directory.

Thanks for your comments - I hadn't considered the case of interactive demos, and as you say it is easy enough to add these checks by using a test in the tests directory. Would it be helpful to provide a short note to this effect in writing R extensions? I would be happy to provide a diff against the latest source.

Hadley mailing list Received on Tue Apr 11 00:12:05 2006

This archive was generated by hypermail 2.1.8 : Mon 10 Apr 2006 - 16:16:58 GMT