tests/testthat/test-main.R

library(ggmsa)
library(ggplot2)


test_that("check whether `ggmsa` create a `ggplot` object", {
    p <- ggmsa(msa = system.file("extdata", "sample.fasta", package = "ggmsa"), 
               start = 10, 
               end = 20,
               font = NULL)
    
    
    expect_true(is.ggplot(p))
})
YuLab-SMU/ggmsa documentation built on Dec. 23, 2024, 7:54 p.m.