tests/testthat/test-annotation-table.R

test_that('annotation table class can be made', {

	skip_on_cran()
	skip_on_ci()

	expect_named(annotation_table())
	expect_output(print(annotation_table()), "annotation_table")

	# Reads in sample ECG data
	dat <- read_annotation(
		record = 'ecg',
		record_dir = test_path(),
		annotator = 'ecgpuwave'
	)

	# ECG data should be 12 annotation columns and 1 index column
	expect_s3_class(dat, 'annotation_table')
	expect_length(dat, 6)
	expect_equal(nrow(dat), 117)

})

Try the EGM package in your browser

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

EGM documentation built on June 22, 2024, 6:53 p.m.