Join GitHub today
Cautionary tales about changing global state #447
For possible inclusion as a sidebar in a future edition, somewhere in this vicinity:
Two recent-ish examples around random number generation that show how careful you need to be when changing global state in your package.
ggplot2's use of a random number to display a message upon startup (but only in interactive sessions)
htmlwidgets touching the seed
Paraphrasing discussion elsewhere: "don't touch things that don't belong to you and if you have to, you need to be super careful to wipe all your sticky fingerprints off everything"