tests/testthat/test-selective_measuring.R

library(testthat)

test_that("selective_measuring works", {
    opts <- options(FastRet.mocks = c("preprocess_data"))
    on.exit(options(opts), add = TRUE)
    obj <- selective_measuring(raw_data = read_rp_xlsx(), k_cluster = 25)
    expect_true(all(names(obj) == c("clustering", "clobj", "coefs", "model", "df", "dfz", "dfzb")))
})

Try the FastRet package in your browser

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

FastRet documentation built on June 25, 2024, 5:07 p.m.