Skip to content
Prev 61789 / 63424 Next

R-devel Digest, Vol 246, Issue 6

Two quite related and recent threads on R-devel:

[1] proposal for WRE: clarify that use of S4 classes implies use of superclasses
https://stat.ethz.ch/pipermail/r-devel/2023-July/082739.html
[2] Should package version requirements assume installation from sources?
https://stat.ethz.ch/pipermail/r-devel/2022-September/081971.html

Notably, if SeuratObject 4.1.3, the current version, had

     importClassesFrom(Matrix, dgCMatrix,
                       ## and the exported superclasses:
                       CsparseMatrix, Matrix, compMatrix, dMatrix,
                       dsparseMatrix, generalMatrix, sparseMatrix)

and not just

     importClassesFrom(Matrix, dgCMatrix)

then the silent breakage due to missing symbols would not have occurred.
That is because _imported_ class definitions are retrieved at load time,
not at install time.  SeuratObject 4.1.3 retrieves the CsparseMatrix
definition at install time, so indeed it is liable to become stale with
Matrix updates ...

Not to derail Dirk's proposal for "Breaks", which could certainly have
uses beyond this particular example where a "correct" NAMESPACE directive
would solve the problems ...

Mikael
On 2023-08-07 6:00 am, r-devel-request at r-project.org wrote: