Skip to content

Seeking packaging advice

2 messages · Ross Boylan, Thomas Lumley

#
I have 3 questions about creating a package for R, and would appreciate
any guidance.

1. Demonstrating the packaged code requires some support code files.  It
would seem natural to put these in the demo directory, but "Writing R
extensions" says files in demo should be suitable for runing from
demo().  The support files are not intended to be run from the top
level.  How should I handle them?

A further complication is that the demo won't actually work without some
prior setup outside of R, setup that can't be automated (the user must
pick a computational cluster).  I am planning to handle that by
documenting it.

2. Are there some base datasets I can assume present for use in my
demonstration?

3. Is this the right list for these questions?

Thanks.
#
On 6 May 2003, Ross Boylan wrote:

            
Perhaps put them in  inst/
The ones listed by data() in a plain installation of R.  Nearly all
installations will also have the data() sets from the recommended
packages, and you can use these if you check (eg with require()) that the
package is actually present.
It's not an egregiously wrong list. r-devel at r-project.org might be better.


	-thomas