Hello, currently your infer_tree_structure() function fails on Windows computers if number.cluster parameter is kept on NA because your mykmeans() function which is called from infer_tree_structure() to calculate the number of clusters from k-means only uses mclapply() with a mc.cores parameter of 30. This will trigger the error seen in this issue #3 where mc.cores > 1 is not supported on Windows.
Your lamian_test() function correctly uses lapply() when ncores = 1 so please add the same option to mykmeans() and infer_tree_structure() so that we don't need to manually set the number of clusters (because this triggers indeed only when number.cluster = NA because that's the only parameter where mykmeans() is called).
Hello, currently your
infer_tree_structure()function fails on Windows computers ifnumber.clusterparameter is kept onNAbecause yourmykmeans()function which is called frominfer_tree_structure()to calculate the number of clusters from k-means only usesmclapply()with amc.coresparameter of 30. This will trigger the error seen in this issue #3 where mc.cores > 1 is not supported on Windows.Your
lamian_test()function correctly useslapply()whenncores = 1so please add the same option tomykmeans()andinfer_tree_structure()so that we don't need to manually set the number of clusters (because this triggers indeed only whennumber.cluster = NAbecause that's the only parameter wheremykmeans()is called).