tests/testthat/test_metdat.R

context("Function metdat")

test_that("Test if metdat does its thing", {
  x <- "this is one chunk of characters & this is another"
  expect_equal(
    metdat(x, 1:2, " & ", collapse = " and "),
    "this is one chunk of characters and this is another"
  )
})

Try the MOSS package in your browser

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

MOSS documentation built on March 26, 2022, 1:10 a.m.