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 a
Hi,
I tried to solve the issue in multiple ways, but I keep getting an installation
error when running R CMD check, although the package installs fine with R CMD
INSTALL:
Error: package ‘Matrix’ required by ‘NMF’ could not be found
I clearly have the package Matrix installed and up-to-date.
I
On 29/04/2020 1:16 p.m., renozao wrote:
Thank you Martin,
Looks like the mMatrix class defined in Matrix is not exported in 3.6.3, maybe
it is now exported in the current R-devel.
Matrix doesn't have the same versions as R: it's a recommended package,
not a base package. It can be updated
Thank you Martin,
Looks like the mMatrix class defined in Matrix is not exported in 3.6.3, maybe
it is now exported in the current R-devel.
In this case I'd rather use a conditional import and definition.
I'll try that route.
Bests,
Renaud
Sent with ProtonMail Secure Email.
‐‐‐ Original M
> renozao
> on Wed, 8 Apr 2020 16:19:59 + writes:
> Thank you William for the reproducible example.
> Currently I using the following (same as in William's example):
> setClassUnion("mMatrix", c("Matrix", "matrix"))
> Martin, are the changes made in the union cla
Thank you William for the reproducible example.
Currently I using the following (same as in William's example):
setClassUnion("mMatrix", c("Matrix", "matrix"))
Martin, are the changes made in the union class handling affecting the way we
should declare them?
Thank you.
Bests,
Renaud
‐‐‐ Or
% R-devel --vanilla --quiet
> library(Matrix)
> setClassUnion("mMatrix", c("Matrix", "matrix"))
Error in get(cname, envir = cwhere, inherits = FALSE) :
object '.__C__compMatrix' not found
Error in setClassUnion("mMatrix", c("Matrix", "matrix")) :
unable to create union class: could not set mem
Use trace() to get a bit more detail - .__C_compMatrix is looked for in the
wrong environment with inherits=FALSE.
> setClassUnion("mMatrix", c("Matrix", "matrix"))
Tracing get(name, envir = env) on entry
x=".AllMTable", envir="", topenv="", inherits=TRUE
Tracing get(name, envir = env) on entr
> renozao
> on Mon, 30 Mar 2020 21:20:43 + writes:
> Hi,
> when R CMD check is run under R-devel (2020-03-29 r78108) I get the
following error at installation:
> Error in get(cname, envir = cwhere, inherits = FALSE) :
> object ‘.__C__compMatrix’ not found
>
Hi,
following up on this.
Has anybody encountered this issue or could give some insights on it?
Is there anything I can do here, except avoiding using Matrix in the union
class?
Thanks
[[alternative HTML version deleted]]
__
R-package-devel@r-p
Hi,
when R CMD check is run under R-devel (2020-03-29 r78108) I get the following
error at installation:
Error in get(cname, envir = cwhere, inherits = FALSE) :
object ‘.__C__compMatrix’ not found
Error in setClassUnion("mMatrix", c("Matrix", "matrix")) :
unable to create union class: could
11 matches
Mail list logo