Re: [Rd] [External] Time to drop globalenv() from searches in package code?

2022-10-05 Thread Henrik Bengtsson
Excluding the global environment, and all its parent environments from the search path that a package sees would be great news, because it would makes things more robust and probably detect a few more bugs out there. In addition to the use case that Duncan mentions, it would also remove the

Re: [Rd] [External] Time to drop globalenv() from searches in package code?

2022-09-17 Thread luke-tierney
On Sat, 17 Sep 2022, Kurt Hornik wrote: luke-tierney writes: On Thu, 15 Sep 2022, Duncan Murdoch wrote: The author of this Stackoverflow question https://stackoverflow.com/q/73722496/2554330 got confused because a typo in his code didn't trigger an error in normal circumstances, but it did

Re: [Rd] [External] Time to drop globalenv() from searches in package code?

2022-09-17 Thread Kurt Hornik
> luke-tierney writes: > On Thu, 15 Sep 2022, Duncan Murdoch wrote: >> The author of this Stackoverflow question >> https://stackoverflow.com/q/73722496/2554330 got confused because a typo in >> his code didn't trigger an error in normal circumstances, but it did when he >> ran his code