tests/testthat/test-modelData.R

test_that("modelData", {
  
  skip_on_cran()
  
  data("propiconazole")
  data("propiconazole_pulse_exposure")
  
  df_MD_Cst <- morse:::addVariable_survDataCstExp(survData(propiconazole))
  expect_length(unique(df_MD_Cst$replicate), 8)
  expect_length(unique(df_MD_Cst$replicate_ID), 8)

  df_MD_Var <- morse:::survData_interpolate(survData(propiconazole_pulse_exposure))
  expect_length(unique(df_MD_Var$replicate), 4)
  
  # time points of the profile are within the time extended
  expect_true(all(propiconazole_pulse_exposure$time %in% df_MD_Var$time))
  
})

Try the morse package in your browser

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

morse documentation built on Oct. 29, 2022, 1:14 a.m.