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
In reply to Re: Best practices for warnings about wrong context (work-around)
by tye
in thread Best practices for warnings about wrong context
by vsespb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |