[Rd] Why should package.skeleton() fail R CMD check?

From: Jari Oksanen <jarioksa_at_sun3.oulu.fi>
Date: Wed 31 Aug 2005 - 08:58:10 GMT


I find it a bit peculiar that a package skeleton created with a utils function package.skeleton() fails subsequent R CMD check. I do understand that the function is intended to produce only a skeleton that should be edited by the package author. I think that it would be justified to say that the skeleton *should* fail the test. However, I have two arguments against intentional failure:

The failure comes only from Rd files, and it seems that the violating code is produced by prompt.default function hidden in the utils namespace. I attach a uniform diff file which shows the minimal set of changes I had to do make utils:::prompt.default to produce Rd files passing R CMD check. There are still two warnings: one on missing source files and another on missing keywords, but these are not fatal. This still produces bad looking latex. These are the changes I made

I'm sorry for the formatting of the diff file: my emacs/ESS is cleverer than I and changes indentation and line breaks against my will.

cheers, jari oksanen

-- 
Jari Oksanen -- Dept Biology, Univ Oulu, 90014 Oulu, Finland
Ph. +358 8 5531526, cell +358 40 5136529, fax +358 8 5531061
email jari.oksanen_at_oulu.fi, homepage http://cc.oulu.fi/~jarioksa/

______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Wed Aug 31 19:02:48 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:19 GMT