You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CRAN requires all packages under Suggests to be used conditionally in all code, ref #246
Since we use the MASS package for lots of examples and tests, we need to add the cumbersome if(requireNamespace("MASS") outside all this code. By switching to using a dataset in the "datasets" package which is part of core R we can probably avoid this, as it does not seem necessary to add this package under suggests. (Possibly by mistake) we currently don't have it under Suggests, while we still use it in a test without the requireNamespace stuff see
CRAN requires all packages under Suggests to be used conditionally in all code, ref #246
Since we use the MASS package for lots of examples and tests, we need to add the cumbersome if(requireNamespace("MASS") outside all this code. By switching to using a dataset in the "datasets" package which is part of core R we can probably avoid this, as it does not seem necessary to add this package under suggests. (Possibly by mistake) we currently don't have it under Suggests, while we still use it in a test without the requireNamespace stuff see
shapr/tests/testthat/test-models.R
Lines 72 to 74 in f7d742c
Should make sure we don't need the datasets package under depends before doing this switch
The text was updated successfully, but these errors were encountered: