tests/testthat/test_marrayToMatrix.R

# Tests "marrayToMatrix" function
context("Array transformation")
library(dst)
test_that("marrayToMatrix", {
  # T1 Nb of vars of x must be an array of at least 3 variables. 
  x <- 1:3
  expect_error(marrayToMatrix(x), "Input is not an array or a matrix." )

} )

Try the dst package in your browser

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

dst documentation built on Nov. 16, 2023, 5:08 p.m.