The internal validate_weights function uses checkmate::expect_numeric (see here) and checkmate::expect_flag which require testthat but it is only in suggests. I think a fix would be to change this to checkmate::assert_numeric and checkmate::assert_flag.
The internal
validate_weights
function usescheckmate::expect_numeric
(see here) andcheckmate::expect_flag
which requiretestthat
but it is only in suggests. I think a fix would be to change this tocheckmate::assert_numeric
andcheckmate::assert_flag
.