tests/tinytest.R

if (require("tinytest", quietly=TRUE)){
    set.seed(42)
    home <- length(unclass(packageVersion("kknn"))[[1]]) == 4 # 0.0.0.9000
    if(home) {
        # Only run locally, let CRAN test examples and the vignette
        test_package("kknn", at_home = home)
    }
}

Try the kknn package in your browser

Any scripts or data that you put into this service are public.

kknn documentation built on April 16, 2025, 9:07 a.m.