R version 4.4.0 beta (2024-04-12 r86413 ucrt) -- "Puppy Cup" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # Test external data > > library(testthat) > library(SPUTNIK) > > # MALDI-MSI example > > test_that("bladder MALDI-MSI", { + x <- bladderMALDIRompp2010(verbose = TRUE) + expect_equal(length(attr(x, "mass")), 1175) + expect_equal(attr(x, "size"), c(260, 134)) + expect_equal(dim(x), c(34840, 1175)) + }) Downloading the data from the repository... trying URL 'https://raw.github.com/paoloinglese/SPUTNIKexamples/master/data/maldiData.rda' Content type 'application/octet-stream' length 6306944 bytes (6.0 MB) ================================================== downloaded 6.0 MB Loading the data in the R environment... Test passed 😀 > > test_that("ovarian DESI-MSI", { + x <- ovarianDESIDoria2016(verbose = TRUE) + expect_equal(length(attr(x, "mass")), 1375) + expect_equal(attr(x, "size"), c(73, 118)) + expect_equal(dim(x), c(8614, 1375)) + }) Downloading the data from the repository... trying URL 'https://raw.github.com/paoloinglese/SPUTNIKexamples/master/data/desiData.rda' Content type 'application/octet-stream' length 4674069 bytes (4.5 MB) ================================================== downloaded 4.5 MB Loading the data in the R environment... Test passed 🌈 > > proc.time() user system elapsed 6.39 0.62 8.45