This PR fixes #89 by special-casing v = NULL and Inf so that they set v <- max_v without a warning. It also updates the documentation for v everywhere exceptspatial_clustering_cv(), which sets allow_max_v to FALSE and so cannot take advantage of these special cases.
While editing, I also changed is.numeric to rlang::is_integerish, since the error message already indicates v needs to be an integer and I think non-integer v is handled inconsistently in the resampling methods.
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
This PR fixes #89 by special-casing
v = NULL
andInf
so that they setv <- max_v
without a warning. It also updates the documentation forv
everywhere exceptspatial_clustering_cv()
, which setsallow_max_v
toFALSE
and so cannot take advantage of these special cases.While editing, I also changed
is.numeric
torlang::is_integerish
, since the error message already indicatesv
needs to be an integer and I think non-integerv
is handled inconsistently in the resampling methods.