tests/testthat/test_SlopeAtT.R

context("Find the slope at time t (SlopeAtT)")

test_that("slope is correct at time t", {
  k_in <- 1
  n0_in <- 1e-3
  r_in <- 1.3
 
  expect_equal(0.311919,  
               round(growthcurver:::SlopeAtT(k = k_in, n0 = n0_in, 
                                         r = r_in, t = 5), 6))
})

Try the growthcurver package in your browser

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

growthcurver documentation built on Oct. 23, 2020, 5:47 p.m.