[R-pkg-devel] Questions regarding a new (seperated package) and how to submit them to cran

Simon Urbanek @|mon@urb@nek @end|ng |rom R-project@org
Fri Jun 23 06:51:34 CEST 2023


Bernd,

the sequence in which you submit doesn't matter - the packages have to work regardless of the sequence. Suggests means that the dependency is optional, not that it can break tests. You have to skip the tests that cannot be run due to missing dependencies (see 1.1.3.1 in R-exts)

Cheers,
Simon



> On Jun 23, 2023, at 2:35 PM, Bernd.Gruber <Bernd.Gruber using canberra.edu.au> wrote:
> 
> Hi,
> 
> I have a question regarding the separation of a package into smaller pieces (to avoid long testing/installation times and more important to avoid to many dependencies)
> 
> I am the maintainer of an R package (dartR) which has grown and is now at the limit in terms of testing/run time and also dependencies. To further develop the package we started to break the package into smaller packages namely
> 
> 
> Two core packages (dartR.base and dartR.data) and here dartR.base has dartR.data in the depends. (dartR.base is 60% of the previous package) and dartR.data is our data.package for test data (dartR.data is already on CRAN)
> 
> 
> 
> 
> Next to the two core packages we also have 3 more addon packages that deal with specialised analysis
> 
> dartR.sim
> dartR.spatial
> dartR.popgenomics.
> 
> Those packages depend on dartR.base and dartR.data.
> 
> All addon packages and core packages should have the other addon packages as suggests, hence here comes the question.
> 
> 
> How do I submit the packages?  All of them at once? Or step by step.
> 
> If I submit step by step (e.g. dartR.base) it obviously cannot have the other dartR addon packages as suggests (cannot be tested and will break the CRAN tests).
> 
> So would be the correct way to:
> Submit dartR.base (without dartR.sim, dartR.spatial and dartR.popgenomics in the suggest.)
> Then submit dartR.sim, then dartR.spatial and finally dartR.popgenomics (all without suggests of the other packages)
> 
> And finally update all packages (only their description file and add the suggests once they are on CRAN).
> 
> Hope that makes sense and thanks in advance,
> 
> Bernd
> 



More information about the R-package-devel mailing list