Re: [R-pkg-devel] Is using global assignment in package tests allowed?

2022-01-27 Thread Dirk Eddelbuettel
On 27 January 2022 at 11:18, Ben Bolker wrote: |I have spent hours trying to understand the scoping behaviour of | testthat, mostly without success. It may bear repeating that use of a test runner package is NOT required by CRAN Repo Policy, Writing R Extensions, or any other official

Re: [R-pkg-devel] Is using global assignment in package tests allowed?

2022-01-27 Thread Jeff Newmiller
I don't know the answer to your question, but "beyond my ken" doesn't sound like a very convincing reason. Mucking with any environment that isn't yours is asking for trouble... the behavior you depend on today may come into conflict with the code you are coordinating with when you least expect