tests/testthat/test-linearPred.R

library(vegan)
library(stats)
data(varechem)
data(varespec)

test_that("linear prediction no error", {
    expect_no_error(
        linearPred(
            vegdist(varespec, "bray"),
            dist(
                BBmisc::normalize(varechem,
                    method = "range",
                    margin = 2
                ),
                method = "euclidean"
            )
        )
    )
})

Try the betaStability package in your browser

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

betaStability documentation built on June 5, 2026, 5:08 p.m.