The dependency resolution in R2spec introduces loops.
Try to build foreach or iterators. In R2spec's calculation of deps, they depend on each other. This appears to be because R2spec promotes a 'suggests' to a 'depends'.
This might be because the 'suggests' is used in the vigniettes?
.... Argh.
Package: iterators Type: Package Title: Iterator construct for R Version: 1.0.3 Author: REvolution Computing Maintainer: REvolution Computing packages@REvolution-computing.com Description: Support for iterators, which allow a programmer to traverse through all the elements of a vector, list, or other collection of data. Depends: R (>= 2.5.0), utils Suggests: foreach License: Apache License (== 2.0) Packaged: 2009-10-05 20:31:21 UTC; weston Repository: CRAN Date/Publication: 2009-10-06 06:56:52
Package: foreach Type: Package Title: Foreach looping construct for R Version: 1.3.0 Author: REvolution Computing Maintainer: REvolution Computing packages@REvolution-computing.com Description: Support for the foreach looping construct. Foreach is an idiom that allows for iterating over elements in a collection, without the use of an explicit loop counter. This package in particular is intended to be used for its return value, rather than for its side effects. In that sense, it is similar to the standard lapply function, but doesn't require the evaluation of a function. Using foreach without side effects also facilitates executing the loop in parallel. Depends: R (>= 2.5.0), iterators(>= 1.0.0), codetools, utils License: Apache License (== 2.0) Packaged: 2009-10-05 20:33:54 UTC; weston Repository: CRAN Date/Publication: 2009-10-06 06:56:45
- Allen S. Rout
On Tue, 2011-04-12 at 15:27 -0400, Allen S. Rout wrote:
The dependency resolution in R2spec introduces loops.
Try to build foreach or iterators. In R2spec's calculation of deps, they depend on each other. This appears to be because R2spec promotes a 'suggests' to a 'depends'.
This might be because the 'suggests' is used in the vigniettes?
As per Fedora R-packaging guidelines 'suggests' and 'depends' are treated in the same way. This is a problem when trying to build lots of packages in the row* so there now** a --nosuggest option available. This option does what it says, it does not treat 'suggests' as Requires/BuildRequires. The --nocheck option might also be needed in this case as R CMD CHECK normally complains when there is a 'suggests' missing.
Hope this helps, Pierre
* Yes, I did try to build quite a part of cran using R2rpm/R2spec ** On the git repo, I have not made a release with these changes yet
Pierre-Yves Chibon pingou-E11Oz7VxvVOXCRStZZN3OA@public.gmane.org writes:
On Tue, 2011-04-12 at 15:27 -0400, Allen S. Rout wrote:
The dependency resolution in R2spec introduces loops.
Try to build foreach or iterators. In R2spec's calculation of deps, they depend on each other. This appears to be because R2spec promotes a 'suggests' to a 'depends'.
This might be because the 'suggests' is used in the vigniettes?
As per Fedora R-packaging guidelines 'suggests' and 'depends' are treated in the same way.
This is simply broken. It is broken in two directions: It elevates to a dependency the things which are only declared to be necessary for CHECK, and it fails to account for 'Imports', which is an _actual_ dependency.
Try ggplot2 for an example of this.
- Allen S. Rout
r-devel@lists.fedoraproject.org