tests/testthat/test-findSpreadRdist.R

test_that("error of the input 'fun'", {
  data("met")
  data("physg")
  expect_error(findSpreadRdist(physg,met,10,euclidean,scale=TRUE))
})

test_that("wrong distance funcion", {
  data("met")
  data("physg")
  expect_error(findSpreadRdist(physg,met,10,"bray",scale=TRUE))
})

Try the GRNNs package in your browser

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

GRNNs documentation built on Sept. 8, 2021, 5:09 p.m.