Tuesday, 27 August 2013

When running check on an R package=?iso-8859-1?Q?=2C_what_does_the_=22use_=91--force=92_to_remove_the_exist?=ing ‘INDEX’" message mean?

When running check on an R package, what does the "use '--force' to remove
the existing 'INDEX'" message mean?

When running R CMD check on an R package I often see the following message
stating that the INDEX is not up to date:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking whether 'INDEX' is up-to-date ... NO
* use '--force' to remove the existing 'INDEX'
* installing the package to re-build vignettes
* creating vignettes ... OK
This does not result in an a Warning, Error or even a Note. I assume this
is referring to the INDEX file in the top level of the package directory?
How do I "use --force"? I've tried adding --force as a argument while
building or checking and it just complains that it is not recognized. Is
there an R command to rebuild the INDEX file?

No comments:

Post a Comment