[R-pkg-devel] stages of package loading

meik michalke meik.michalke at hhu.de
Sun Feb 25 12:38:35 CET 2018


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

  dipl. psych. meik michalke
  abt. f"ur diagnostik und differentielle psychologie
  institut f"ur experimentelle psychologie
  geb"aude        |  tel +49 (0)211 8113498
  40204 d"usseldorf           |  fax +49 (0)211 8111753

  http://www.psycho.hhu.de    https://reaktanz.de
  https://rkward.kde.org      https://twitter.com/RKWardNet

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20180225/ba07ca66/attachment.sig>

More information about the R-package-devel mailing list