tests/testthat/test_utils.R

# ::rtemis.a3::
# rtemis.org

# %% gene2sequence ----
test_that("gene2sequence works", {
  skip("gene2sequence queries ensembl.org. Avoid running repeatedly.")
  expect_s3_class(
    gene2sequence("MAPT"),
    "data.frame"
  )
})

# %% aa_sub ----
test_that("aa_sub works", {
  expect_equal(
    aa_sub("ACDEFG", c("C2A")),
    c("A", "A", "D", "E", "F", "G")
  )
})

Try the rtemis.a3 package in your browser

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

rtemis.a3 documentation built on April 29, 2026, 1:06 a.m.