Skip to content

[R-pkg-devel] stages of package loading

2 messages · meik michalke

#
hi,

i'm currently trying to figure out whether it is possible to tell a dependency 
that it was loaded as a dependency and by which package.

the use case is this:

 - packages A and B both depend on package X
 - package X can be loaded independently, but checks if A or B are available
   - when both are missing, X should throw a message
   - when A or B are already loaded, X should load quietly

now i want to load A and B without X falsely informing me that they are 
missing. i.e., it should be clear to X that A is available and currently being 
loaded when X itself is loaded as the dependency of A.

it seems .onLoad() is not the right place for X to search for A or B, because 
it always throws the message when the first of both packages is being loaded. 
any suggestions?


viele gr??e :: m.eik
#
Am Sonntag, 25. Februar 2018, 12:38:35 CET schrieb meik michalke:
don't bother, i've decided to unsubscribe again and look somewhere else :: m.