library(SFEData)
sfe <- readRDS(system.file("extdata/sfe_visium.rds", package = "SpatialFeatureExperiment"))
test_that("SFEVersion of first version of SFE object should be NULL", {
expect_null(SFEVersion(sfe))
})
test_that("Add version in updateObject", {
curr_version <- packageVersion("SpatialFeatureExperiment")
expect_message({sfe <- updateObject(sfe, verbose = TRUE)},
paste0("Updating it to version ", curr_version))
expect_equal(SFEVersion(sfe), curr_version)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.