tests/testthat/test-preprocessing-retrieveanno.R

## Data
exptabpath <- system.file("extdata", "exptab-preprocessing.csv", package="tepr")
gencodepath <- system.file("extdata", "gencode-chr13.gtf", package = "tepr")

## Call the function to test
allannobed <- retrieveanno(exptabpath, gencodepath, verbose = FALSE)

## ---- Comparing to expected object ---- ##
expectedobj <- readRDS(system.file("extdata", "allannobed.rds",
    package="tepr"))
test_that("retrieveanno works properly", {
    expect_equal(allannobed, expectedobj)
})

Try the tepr package in your browser

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

tepr documentation built on June 8, 2025, 10:46 a.m.