tests/testthat/test-cosinor-constructor.R

# ggplot ====
data("twins")
scos <- cosinor(rDYX ~ hour, twins, 24)
mcos <- cosinor(rDYX ~ hour, twins, c(24, 12))
pcos <- cosinor(rDYX ~ hour, twins, 24, "patid")
g <- ggcosinor(mcos)

test_that("ggcosinor makes a ggplot", {
	expect_s3_class(g, "ggplot")
})

Try the card package in your browser

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

card documentation built on Sept. 3, 2020, 9:07 a.m.