Date: 2022-08-21 22:34 Sender: Mikael JaganPlease provide a minimal example demonstrating the problem, preferably relying only on 'Matrix' and base R. Where feasible, we try to allocate up front so that such errors are thrown early. It's possible that we can do better in your use case, but it's hard to know without an example...
As for your specific proposal of a "global parameter", can you elaborate? I.e., can you provide some code suggesting an implementation?
Note that 'Matrix', much like base R, is designed to provide "basic" functionality, which others can extend, wrap, etc. as they please (see, e.g., 'MatrixExtra'). So, you might consider encapsulating your "feature" in a package of its own. |