hadley / adv-r

Advanced R: a book
http://adv-r.hadley.nz
Other
2.35k stars 1.71k forks source link

7.6 Environments - Managing state within a package (Examples, Limitations, and Best Practices) #1750

Open christian-million opened 1 year ago

christian-million commented 1 year ago

In Section 7.6 (Environments - As data structures), the bullet about "Managing state within a package" seems especially useful, and leaves me wanting more details about this approach.

I have found a few examples of this in the wild:

While a reference to those examples (or others) may be useful to readers, by showcasing use cases, this issue was created because I am interested to learn more about this approach in general:

I am uncertain where the best place to answer these questions is (other options: R Packages, Posit Community), but thought I'd mention it here since there is a dedicated bullet in the book.