-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update for Matrix package #103
Comments
New mail from Matrix authors:
|
Matrix 1.4-2 will formally deprecate 187 coercion methods. More
precisely, coercions of the form
where
'object' inherits from the virtual class Matrix, is a traditional
matrix, or is a logical or numeric vector
'Class' specifies a non-virtual subclass of Matrix, such as
dgCMatrix, but really any subclass matching the pattern
will continue to work as before but signal a deprecation message or
warning (message in the widely used dg.Matrix and d.CMatrix cases).
By default, the message or warning will be signaled with the first
deprecated method call and suppressed after that. Signaling can be
controlled via option Matrix.warnDeprecatedCoerce:
<=0 = be completely silent [[ at your own risk ! ]]
1 = warn each time
Deprecated coercions in your package sources (including examples,
tests, and vignettes) should be revised to go via virtual classes
only, as has been advocated for quite some time in
For example, rather than
we recommend (the full, a "permutation", or a simplification given the
context of)
To simplify the revision process, the development version of Matrix
provides Matrix:::.as.via.virtual(), taking a pair of class names and
returning as a call the correct nesting of coercions:
We suggest checking package tarballs built with
in the .onLoad() hook (see ?.onLoad), so that all deprecated coercions
are exposed in the check output. (If you find that a warning or error
has been signaled from 'Matrix' itself, then we'd welcome a report
containing a minimal reproducible example, so that we may revise our
own code.)
The text was updated successfully, but these errors were encountered: