tests/testthat/test-plotPred.R

test_that("plotPred works", {
   data("freelive2")
   Ytrue<-YR2
   Ypreds<-sampling_from_distribution(YR2,n=length(YR2)+1)

   ## the Ytrue and Ypreds should be of same length
   expect_error(
   plotPred(Ytrue,Ypreds)
   )
})

Try the MUVR2 package in your browser

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

MUVR2 documentation built on Sept. 16, 2024, 9:06 a.m.