abort R sesion when run assortativity code

Hi ! I´m trying to run the assortatyvity nominal code for a weighted, directed and multiple network.
The code is:

homophyly<-assortativity_nominal(net, V(net)$inst, directed=T) 

But, any time that I run the code, the R sesion is aborted
what can be wrong?
Thanks!

Can you please show a complete but minimal example? See http://sscce.org/ for guidance.

Just a reminder to show a minimal example. If R crashes, that’s a problem. But if we cannot reproduce the problem, we will not be able to fix it.