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

2020-05-18 Thread renozao
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

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

2020-05-18 Thread renozao
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

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

2020-05-18 Thread Duncan Murdoch
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

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

2020-04-29 Thread renozao
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

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

2020-04-18 Thread Martin Maechler
> 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

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

2020-04-08 Thread renozao
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 ‐‐‐

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

2020-04-08 Thread William Dunlap
% 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

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

2020-04-08 Thread William Dunlap
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

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

2020-04-08 Thread Martin Maechler
> 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 >

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

2020-04-06 Thread renozao
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-pkg-devel] Error creating union class: object ‘.__C__compMatrix’ not found

2020-03-30 Thread renozao
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: