HighlanderLab / SIMplyBee

SIMplyBee R package extends AlphaSimR for simulating honeybee populations and breeding programmes
http://www.simplybee.info/
Other
0 stars 5 forks source link

csd turned off in some of the tests to make them more deterministic #563

Closed JerBub closed 8 months ago

gregorgorjanc commented 8 months ago

@JerBub I think you have switched off csd in too many places - here is the error message from the R CMD check

══ Failed tests ════════════════════════════════════════════════════════════════
[211](https://github.com/HighlanderLab/SIMplyBee/actions/runs/7286192573/job/19854453954?pr=563#step:5:213)
── Error ('test-L0_auxiliary_functions.R:15:3'): nCaste ────────────────────────
[212](https://github.com/HighlanderLab/SIMplyBee/actions/runs/7286192573/job/19854453954?pr=563#step:5:214)
Error in `quickHaplo(nInd = 5, nChr = 1, segSites = 100, csdChr = NULL)`: unused argument (csdChr = NULL)
[213](https://github.com/HighlanderLab/SIMplyBee/actions/runs/7286192573/job/19854453954?pr=563#step:5:215)
── Error ('test-L0_auxiliary_functions.R:765:4'): isGenoHeterozygous ───────────
[214](https://github.com/HighlanderLab/SIMplyBee/actions/runs/7286192573/job/19854453954?pr=563#step:5:216)
Error in `getCsdGeno(getQueen(colony, simParamBee = SP), simParamBee = SP)`: The csd locus has not been set!
[215](https://github.com/HighlanderLab/SIMplyBee/actions/runs/7286192573/job/19854453954?pr=563#step:5:217)
Backtrace:
[216](https://github.com/HighlanderLab/SIMplyBee/actions/runs/7286192573/job/19854453954?pr=563#step:5:218)
    ▆
[217](https://github.com/HighlanderLab/SIMplyBee/actions/runs/7286192573/job/19854453954?pr=563#step:5:219)
 1. └─SIMplyBee::getCsdGeno(getQueen(colony, simParamBee = SP), simParamBee = SP) at test-L0_auxiliary_functions.R:765:4

Please ensure that csd is available for tests where we are testing functionality related to csd

gregorgorjanc commented 8 months ago

Fixed to merge this in.