tests/testthat/test-roxytest-testexamples-show_cn_profile.R

# Generated by roxytest: do not edit by hand!

# File R/show_cn_profile.R: @testexamples

test_that("Function show_cn_profile() @ L45", {
  
  # Load copy number object
  load(system.file("extdata", "toy_copynumber.RData",
    package = "sigminer", mustWork = TRUE
  ))
  
  p <- show_cn_profile(cn, nrow = 2, ncol = 1)
  p
  
  p2 <- show_cn_profile(cn,
    nrow = 2, ncol = 1,
    position = "chr1:3218923-116319008"
  )
  p2
  
  expect_s3_class(p, "ggplot")
  expect_s3_class(p2, "ggplot")
})
ShixiangWang/sigminer documentation built on March 16, 2024, 12:30 p.m.