manlius/muxViz

example_transitivity_new.R bugreport

TigerZhao007 opened this issue · 3 comments

muxViz/examples-scripts/example_transitivity_new.R

line 27
binarizeMatrix()
Is it in library("Binarize") or library("BiTrinA") ?

And line 42
n.tri["mux"] <- GetGlobalNumberTriangles(M, Layers,Nodes)

Error in diag(A) : long vectors not supported yet: array.c:2186

binarizeMatrix is a function in muxViz that has not (yet) been exported into the namespace. Simply replace it with muxViz:::binarizeMatrix. You can also check its documentation by ?muxViz:::binarizeMatrix.
Thanks for the bug report, we will fix the issue eventually.

Thanks, gbertagnolli . However, I got error at line 42 after I replace line 27 with "A <- muxViz:::binarizeMatrix(A)".

Line 42
n.tri["mux"] <- GetGlobalNumberTriangles(M, Layers,Nodes)

Error in diag(A) : long vectors not supported yet: array.c:2186

Try loading the Matrix package, i.e. library(Matrix). This will solve most issues with high probability. We will fix such bugs in the next release.