[Rd] A: ImportFrom(B, ...) -- B: ImportFrom(A, ...)

2012-01-14 Thread Martin Maechler
If I have a package A whose NAMESPACE has ImportFrom(B, )) and a package B whose NAMESPACE has ImportFrom(A, ) and we can assume that and are disjoint. The clue would be that I only import relatively little from one namespace to the other. I currently get an error Error in loadNamespac

Re: [Rd] A: ImportFrom(B, ...) -- B: ImportFrom(A, ...)

2012-01-14 Thread Prof Brian Ripley
It is necessary (in most cases, and as implemented). When R goes to load the namespace of A, it has to find the objects you wish to import from B. Remember that objects in R are not standalone: they may have shared components and functions have environments, so the only way to so this is to l