Hi R users, I am developing two packages. Each package uses some functions from the other package. Now when I define these dependencies in the NAMESPACE file (via importFrom(XXXX,function1,....)), i get this error (when building one package): cyclic namespace dependency detected when loading 'XXXXXX', already loading ?YYYYYYY?, ?XXXXXXXXX? Is there any way to prevent this error? Shouldn't this case be allowed in some way? Or can package dependencies only be in one direction? Thanks Jannis
Uwe Ligges
2013-Aug-25 14:18 UTC
[Rd] cyclic namespace dependency detected when loading ...
On 21.08.2013 16:34, Jannis wrote:> Hi R users, > > > I am developing two packages. Each package uses some functions from the > other package. Now when I define these dependencies in the NAMESPACE > file (via importFrom(XXXX,function1,....)), i get this error (when > building one package): > > cyclic namespace dependency detected when loading 'XXXXXX', already > loading ?YYYYYYY?, ?XXXXXXXXX? > > Is there any way to prevent this error? Shouldn't this case be allowed > in some way? Or can package dependencies only be in one direction?Imports only in one direction: Package A has to be installed before package B and package B before package A now. The hen and the egg... Best, Uwe Ligges> > > Thanks > Jannis > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel