When writing a function in R, it’s good to provide commonly appropriate default values for the arguments so that the user could call the function conviniently in most cases. However, if you happen to have some functions sharing the same default values, you may be lured to create a variable (e.g., opts) and assign those default values to this variable. The code looks good, runs well, works fine. Until one day, the little opts gets redefined …