Closed christianparobek closed 8 years ago
Error message tracks it down to skeleSim/shiny/skeleSimShinyGUI/global.R#74
, which has:
fastsimcoalInit <- function(np){ #np num populations
parms <- new("fastsimcoal.params")
parms@growth.rate <- rep(0,np)
parms@sample.times <- rep(0L,np) #must be integer
parms
}
Seems to be the offending region. Perhaps this is an old code bit that needs to be removed or we need to go back and make the megalist object-maker function produce a fastsimcoal.params
slot?
No, this needs to be read from a new object now. A while ago, I changed the way fastsimcoal parameters were specified, and both of these are in the pop.info matrix of the fastsimcoal class. Let me know if you want me to switch it or if you can work it out on your own.
I thought that we left these two slots in the fsc class after all. Even though strataG uses the new pop object. I create the pop object to be used in fastsimcoal() when the simulation gets run. This greatly simplified the interface. Did including these two slots cause the package to not pass checks?
Eric is it easy for you to switch it?
No problem. I'll put them back in now and document them in such a way that it passes the checks.
Done: growth.rate and sample.times moved back to scenario.params class and documented.
Great thanks! Reinstalled from github, but when run skeleSimGUI()
I get the same stack trace as before. Perhaps I'm overlooking something?
Oh, I see the issue. Allan, you are assigning default values to @growth.rate and @sample.times as slots in a fastsimcoal.params object in global.R. Shouldn't these be slots in the scenario.params object?
Ignore the last - I'm adding both back to fastsimcoal.params. Sorry for the confusion - I'm jumping between three different projects now, and balls are getting dropped.
growth.rate and sample.times added back to fastsimcoal.params. Error should be gone now.
On three different computers (2 Ubuntu, 1 Windows) I'm getting the following error:
Going to try and track it down now, but posting it in case it rings bells with anyone else.