tests/testthat/test.timestamps.R

context("timestamps")
test_that("timestamps function works", {
  data(leroy)
  expect_equal(timestamps(leroy), leroy@timestamps)
  t <- Sys.time() + 1:n.locs(leroy)
  timestamps(leroy) <- t
  expect_equal(timestamps(leroy), t)
  expect_error(timestamps(leroy)[5:8] <- t[1] + 5:8 + 100)
})

Try the move package in your browser

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

move documentation built on July 9, 2023, 6:09 p.m.