Skip to content
Prev 5463 / 12125 Next

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

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>
In-Reply-To: <f3de0398-9d29-e2cd-7ce1-c0d238cf87bd@gmail.com>