Skip to content
Prev 9680 / 12125 Next

[R-pkg-devel] Question regarding CRAN submission with notes

The note says it contains "an installed version" of the package, 
presumably referring to your test package.

I think you shouldn't do that.  For a trivial package it might be true 
that the installed version is the same on all systems, but it won't 
continue to be as the installation code evolves.

What you could try is to include files that would let you install the 
test package into a library under tempdir().  Your tests would start by 
installing the test package there, then run the tests, then clean up 
afterwards.

It's possible the tests will still complain about that, in which case 
I'd go one step further back, and write a function to create the source 
package, rather than including it.  For example, have a file 
DESCRIPTION.txt which your test renames to DESCRIPTION, etc.

Duncan Murdoch
On 11/10/2023 3:06 a.m., Tony Wilkes wrote: