From ligges at statistik.tu-dortmund.de  Sun Aug 25 16:18:05 2013
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Sun, 25 Aug 2013 16:18:05 +0200
Subject: [Rd] cyclic namespace dependency detected when loading ...
In-Reply-To: <5214CFEE.2000809@yahoo.de>
References: <5214CFEE.2000809@yahoo.de>
Message-ID: <521A121D.2050209@statistik.tu-dortmund.de>



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



[Rd] cyclic namespace dependency detected when loading ...
Uwe Ligges