bodkan / slendr

Population genetic simulations in R 🌍
https://bodkan.net/slendr
Other
54 stars 5 forks source link

Fix SLiM-presence test in `check_dependencies()` #152

Closed bodkan closed 7 months ago

bodkan commented 7 months ago

I just noticed that check_dependencies() wasn't updated during the Windows-portability update. It fails to detect slim.exe on Windows -- see here.

This isn't a big one -- user code isn't affected because check_dependencies() isn't a user-facing function. It's just that example code will be ignored during Windows CRAN checks (they will be run on all other platforms though)... it will be good to fix this at some point when I get a chance.

bodkan commented 7 months ago

While I’m at it, I should refactor slim.exe / slim presence checks scattered throughout the codebase into the equivalent of the internal function is_slendr_env_present().