gbertagnolli / diffudist

Diffusion distance and geometry R package
https://gbertagnolli.github.io/diffudist
5 stars 5 forks source link

match.arg() error #1

Open cbknox opened 2 years ago

cbknox commented 2 years ago

Hi, I was running through this example and ran into the following error when trying to use get_distance_matrix():

ERROR! Wrong type of Laplacian, available types are: Laplacian Normalized Laplacian Quantum Laplacian MERW Normalized Laplacian Aborting process. Error in match.arg(toupper(type), types) : 'arg' should be one of “Laplacian”, “Normalized Laplacian”, “Quantum Laplacian”, “MERW Normalized Laplacian”

I tried specifying the type, not specifying the type to let the default be selected, and different igraph objects and still get the same error. I copied the example code directly, so not an issue with spelling or something like that. Likely the problem is with match.arg? Or toupper()?

Seven595 commented 7 months ago

i have the same problem...

gbertagnolli commented 5 months ago

i have the same problem...

The error had been solved (feb 2023) in the new version of the package you can find on CRAN. I will update this version asap. Thank you very much for pointing out the issue!