Running ‘demo_article-jss-example1.R’ [2s/3s]
  Comparing ‘demo_article-jss-example1.Rout’ to ‘demo_article-jss-example1.Rout.save’ ... OK
  Running ‘demo_article-jss-example2.R’ [2s/3s]
  Comparing ‘demo_article-jss-example2.Rout’ to ‘demo_article-jss-example2.Rout.save’ ... OK
  Running ‘demo_article-jss.R’ [6s/9s]
  Comparing ‘demo_article-jss.Rout’ to ‘demo_article-jss.Rout.save’ ... OK
  Running ‘demo_cholesky.R’ [1s/2s]
  Comparing ‘demo_cholesky.Rout’ to ‘demo_cholesky.Rout.save’ ... OK
  Running ‘demo_jss15-BYM.R’ [2s/3s]
  Comparing ‘demo_jss15-BYM.Rout’ to ‘demo_jss15-BYM.Rout.save’ ... OK
  Running ‘demo_jss15-Leroux.R’ [3s/4s]
  Comparing ‘demo_jss15-Leroux.Rout’ to ‘demo_jss15-Leroux.Rout.save’ ... OK
  Running ‘demo_spam.R’ [1s/2s]
  Comparing ‘demo_spam.Rout’ to ‘demo_spam.Rout.save’ ... OK
  Running ‘demo_timing.R’ [2s/3s]
  Comparing ‘demo_timing.Rout’ to ‘demo_timing.Rout.save’ ... OK
  Running ‘jss_areal_counts.R’ [2s/2s]
  Comparing ‘jss_areal_counts.Rout’ to ‘jss_areal_counts.Rout.save’ ... OK
  Running ‘testthat.R’ [7s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # HEADER ####################################################
  > # This is file spam/tests/testthat.R.                       #
  > # It is part of the R package spam,                         #
  > #  --> https://CRAN.R-project.org/package=spam              #
  > #  --> https://CRAN.R-project.org/package=spam64            #
  > #  --> https://git.math.uzh.ch/reinhard.furrer/spam         #
  > # by Reinhard Furrer [aut, cre], Florian Gerber [ctb],      #
  > #    Roman Flury [ctb], Daniel Gerber [ctb],                #
  > #    Kaspar Moesinger [ctb]                                 #
  > # HEADER END ################################################
  > 
  > library("testthat")
  > # library("spam")
  > 
  > test_check("spam")
  Loading required package: spam
  Loading required package: dotCall64
  Loading required package: grid
  Spam version 2.2-1 (2018-12-20) is loaded.
  Type 'help( Spam)' or 'demo( spam)' for a short introduction 
  and overview of this package.
  Help for individual functions is also obtained by adding the
  suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
  
  Attaching package: 'spam'
  
  The following objects are masked from 'package:base':
  
      backsolve, forwardsolve
  
  ── 1. Error: (unknown) (@test-constructors.R#31)  ──────────────────────────────
  number of items to replace is not a multiple of replacement length
  1: `[<-`(`*tmp*`, unique(cbind(is, js)), value = 1:8) at testthat/test-constructors.R:31
  2: `[<-`(`*tmp*`, unique(cbind(is, js)), value = 1:8)
  3: .local(x, i, j, ..., value)
  4: assign.spam(x, i, NULL, value)
  5: stop("number of items to replace is not a multiple of replacement length")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 643 SKIPPED: 0 FAILED: 1
  1. Error: (unknown) (@test-constructors.R#31) 
  
  Error: testthat unit tests failed
  Execution halted