From dmitri.popavenko at gmail.com  Wed Apr  6 08:42:55 2016
From: dmitri.popavenko at gmail.com (Dmitri Popavenko)
Date: Wed, 6 Apr 2016 09:42:55 +0300
Subject: [Rd] (no) circular dependency
Message-ID: <CAJL_pohRgoxg0M4kGDttQOq940riyyRrZ0Y7_w0uRHtR1b0ZOw@mail.gmail.com>

Hello all,

I would like to build two packages (say A and B), for two different
purposes.
Each of them need one or two functions from the other, which leads to the
problem of circular dependency.

Is there a way for package A to import a function from package B, and
package B to import a function from package A, without arriving to circular
dependency?
Other suggestions in the archive mention building a third package that both
A and B should depend on, but this seems less attractive.

I read about importFrom() into the NAMESPACE file, but I don't know how to
relate this with the information in the DESCRIPTION file (other than adding
each package to the Depends: field).

Thank you,
Dmitri

	[[alternative HTML version deleted]]



[Rd] (no) circular dependency
Dmitri Popavenko