Skip to content

[R-pkg-devel] Error creating union class: object ‘.__C__compMatrix’ not found

2 messages · Duncan Murdoch, renozao

#
On 29/04/2020 1:16 p.m., renozao wrote:
Matrix doesn't have the same versions as R:  it's a recommended package, 
not a base package.  It can be updated independently of R.  The current 
version on CRAN is 1.2-18, but the R-forge version is 1.3-0.  Neither 
one exports mMatrix.

Duncan Murdoch
#
So I can't use neither use the the class mMatrix form Matrix in my package, neither define an internal union class of ("Matrix", "matrix").
If I define a union class with a different name, then I have to import the class "Matrix" from Matrix or I get a check error.
But then I need to add Matrix as Depends (or I get an error, which makes sense).
The issue is that if I add Matrix as Depends I get the error that the package "Matrix" is not found, when checking if the package can be installed.
This error does not happen when installing with R CMD INSTALL.

I eventually managed to reproduce the error: as soon as I add ggplot2 in Imports I get the error.
A DESCRIPTION file with this breaks:

Depends:
  Matrix
Imports:
  ggplot2


I have Matrix 1.2.18 and ggplot2 3.3.0





Sent with ProtonMail Secure Email.

??????? Original Message ???????
On Monday, May 18, 2020 2:31 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:

            
Message-ID: <_ox9IHnYEZvGNdzOqgmLtVcOMWnPFPDHYvr4PWj18i0Sw3Ise9vGravUMuyT5Uc2qzugngMLsKviUbshQxNTPBUyT4AGd2dsWZwa0lv8kuU=@protonmail.com>