tests/testthat/test_read_SPE2R.R

test_that("Test general functionality", {
  testthat::skip_on_cran()
  local_edition(3)

  ##crash function
  expect_null(read_SPE2R(file = "text"))

  ## default values
  expect_s4_class(
    read_SPE2R(
      "https://github.com/R-Lum/Luminescence/blob/master/tests/testdata/SPEfile.SPE?raw=true"
    ),
    "RLum.Data.Image"
  )

  ##test verbose
  expect_s4_class(
    read_SPE2R(
      "https://github.com/R-Lum/Luminescence/blob/master/tests/testdata/SPEfile.SPE?raw=true",
      verbose = FALSE
    ),
    "RLum.Data.Image"
  )

})

Try the Luminescence package in your browser

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

Luminescence documentation built on June 22, 2024, 9:54 a.m.