cynkra / collector

What the Package Does (One Line, Title Case)
0 stars 0 forks source link

Make it a proper package to use in other packages #1

Closed moodymudskipper closed 5 months ago

moodymudskipper commented 5 months ago

cc @krlmlr

It has 2 exported functions:

The simplest use is that the user will place set_collector() in .onLoad(), pkg is guessed from the .onLoad call, or from DESCRIPTION if called outside. by default we consider all exported functions but we can provide a custom list.

These will replace the body of relevant functions with collect_and_run(), with similar magic to what we had before, with the most notable changes: