Closed ercrema closed 9 months ago
Running modelVector() using the test script testModel.R generates the following error:
modelVector()
testModel.R
Error in apply(pop[pool[[x]],paste0("t",1:ntraits,2,sum): dim(X) must have positive length
These refer to a series of lines in the social.learning() module: https://github.com/simoncarrignon/mixed-transmission/blob/c66b51e8e07567ffc737571eaa6bdc47c16a9e71/R/socialLearning.R#L194-L205
social.learning()
Should be fixed with commit b29cf340883ec4a3d370646dffd78ceecd974856
Running
modelVector()
using the test scripttestModel.R
generates the following error:These refer to a series of lines in the
social.learning()
module: https://github.com/simoncarrignon/mixed-transmission/blob/c66b51e8e07567ffc737571eaa6bdc47c16a9e71/R/socialLearning.R#L194-L205