infomap_ecology_package
infomap_ecology_package copied to clipboard
Installed infomap with pip is not detected by check_infomap
I installed infomap with pip as recommended in https://www.mapequation.org/infomap/#Install but the function check_infomap() does not detect it is installed, and the other functions don't work. Probably because you use system(paste("./", x, " -V", sep = "")) so you force installation in the actual folder.
It doesn't work If I pass the complete path like
infomap_object <- run_infomap_monolayer(mpg, infomap_executable='/Users/username/.local/bin/infomap', flow_model = 'directed', silent=T,trials=100, two_level=F, seed=123)
with error
sh: .//Users/leonardosaravia/.local/bin/infomap: No such file or directory simpleWarning: Infomap not installed correctly. See www.mapequation.org for instructions on how to install. Error in run_infomap_monolayer(mpg, infomap_executable = "/Users/leonardosaravia/.local/bin/infomap", : Error in Infomap standalone file.
You are right. The package only looks for the executable in the current folder, it only allows for different names.
Thank you for raising this. We will add path flexibility in the next version.