in reply to Best practices for warnings about wrong context
Seems a reasonable warning to me. It is also reasonable to worry that there can be cases where the user doesn't control the context. So you might want to use the more advanced features of warnings (warnings::register) to allow users to disable that warning.
For call-backs, you can also easily avoid the warning via the simple trick of:
specifyCallback( sub { myfunct(...); return } );
- tye
|
---|