Running ‘testthat.R’ [19s/33s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(aghq)
  > 
  > test_check("aghq")
  Beginning optimization
  
  iter         f        nrm_gr                     status
     1   22.294265    0.000902                 Continuing
     2   22.294265    0.000000                 Continuing
  
  Iteration has terminated
     2   22.294265    0.000000                    Success
  
  Beginning optimization
  
  iter         f        nrm_gr                     status
     1   22.295171    0.298580   Continuing - TR contract
     2   22.295171    0.298580   Continuing - TR contract
     3   22.295171    0.298580   Continuing - TR contract
     4   22.295171    0.298580   Continuing - TR contract
     5   22.295171    0.298580   Continuing - TR contract
     6   22.295171    0.298580   Continuing - TR contract
     7   22.295171    0.298580   Continuing - TR contract
     8   22.295171    0.298580   Continuing - TR contract
     9   22.295171    0.298580   Continuing - TR contract
    10   22.295171    0.298580   Continuing - TR contract
    11   22.294300    0.058451                 Continuing
    12   22.294265    0.000177                 Continuing
    13   22.294265    0.000000                 Continuing
    14   22.294265    0.000000   Continuing - TR contract
    15   22.294265    0.000000   Continuing - TR contract
    16   22.294265    0.000000   Continuing - TR contract
    17   22.294265    0.000000   Continuing - TR contract
    18   22.294265    0.000000   Continuing - TR contract
    19   22.294265    0.000000   Continuing - TR contract
    20   22.294265    0.000000   Continuing - TR contract
    21   22.294265    0.000000   Continuing - TR contract
    22   22.294265    0.000000   Continuing - TR contract
    23   22.294265    0.000000   Continuing - TR contract
    24   22.294265    0.000000   Continuing - TR contract
    25   22.294265    0.000000   Continuing - TR contract
  
  iter         f        nrm_gr                     status
    26   22.294265    0.000000   Continuing - TR contract
    27   22.294265    0.000000   Continuing - TR contract
    28   22.294265    0.000000   Continuing - TR contract
    29   22.294265    0.000000   Continuing - TR contract
    30   22.294265    0.000000   Continuing - TR contract
    31   22.294265    0.000000   Continuing - TR contract
    32   22.294265    0.000000   Continuing - TR contract
  
  Iteration has terminated
    32   22.294265    0.000000Radius of trust region is less than stop.trust.radius
  
  Beginning optimization
  
  iter         f        nrm_gr                     status
     1   24.982155    0.268296                 Continuing
     2   24.980602    0.001541                 Continuing
     3   24.980602    0.000000                 Continuing
     4   24.980602    0.000000   Continuing - TR contract
     5   24.980602    0.000000   Continuing - TR contract
     6   24.980602    0.000000   Continuing - TR contract
     7   24.980602    0.000000   Continuing - TR contract
     8   24.980602    0.000000   Continuing - TR contract
     9   24.980602    0.000000   Continuing - TR contract
    10   24.980602    0.000000   Continuing - TR contract
    11   24.980602    0.000000   Continuing - TR contract
    12   24.980602    0.000000   Continuing - TR contract
    13   24.980602    0.000000   Continuing - TR contract
    14   24.980602    0.000000   Continuing - TR contract
    15   24.980602    0.000000   Continuing - TR contract
    16   24.980602    0.000000   Continuing - TR contract
    17   24.980602    0.000000   Continuing - TR contract
    18   24.980602    0.000000   Continuing - TR contract
    19   24.980602    0.000000   Continuing - TR contract
    20   24.980602    0.000000   Continuing - TR contract
    21   24.980602    0.000000   Continuing - TR contract
    22   24.980602    0.000000   Continuing - TR contract
    23   24.980602    0.000000   Continuing - TR contract
    24   24.980602    0.000000   Continuing - TR contract
    25   24.980602    0.000000   Continuing - TR contract
  
  iter         f        nrm_gr                     status
    26   24.980602    0.000000   Continuing - TR contract
    27   24.980602    0.000000   Continuing - TR contract
    28   24.980602    0.000000   Continuing - TR contract
    29   24.980602    0.000000   Continuing - TR contract
    30   24.980602    0.000000   Continuing - TR contract
    31   24.980602    0.000000   Continuing - TR contract
    32   24.980602    0.000000   Continuing - TR contract
  
  Iteration has terminated
    32   24.980602    0.000000Radius of trust region is less than stop.trust.radius
  
  Beginning optimization
  
  iter         f        nrm_gr                     status
     1   25.276860    3.891686   Continuing - TR contract
     2   25.276860    3.891686   Continuing - TR contract
     3   25.276860    3.891686   Continuing - TR contract
     4   25.276860    3.891686   Continuing - TR contract
     5   25.276860    3.891686   Continuing - TR contract
     6   24.980604    0.009185                 Continuing
     7   24.980604    0.009185   Continuing - TR contract
     8   24.980604    0.009185   Continuing - TR contract
     9   24.980604    0.009185   Continuing - TR contract
    10   24.980604    0.009185   Continuing - TR contract
    11   24.980604    0.009185   Continuing - TR contract
    12   24.980604    0.009185   Continuing - TR contract
    13   24.980604    0.009185   Continuing - TR contract
    14   24.980604    0.009185   Continuing - TR contract
    15   24.980604    0.009185   Continuing - TR contract
    16   24.980602    0.001017                 Continuing
    17   24.980602    0.000020                 Continuing
    18   24.980602    0.000000                 Continuing
    19   24.980602    0.000000                 Continuing
  
  Iteration has terminated
    19   24.980602    0.000000                    Success
  
  Beginning optimization
  
  iter         f        nrm_gr                     status
     1   36.248678    1.085856                 Continuing
     2   36.219043    0.027173                 Continuing
     3   36.219023    0.000019                 Continuing
     4   36.219023    0.000000                 Continuing
  
  Iteration has terminated
     4   36.219023    0.000000                    Success
  
  Beginning optimization
  
  iter         f        nrm_gr                     status
     1   37.806326    8.797695   Continuing - TR contract
     2   37.806326    8.797695   Continuing - TR contract
     3   37.806326    8.797695   Continuing - TR contract
     4   37.806326    8.797695   Continuing - TR contract
     5   36.266498    1.383027                 Continuing
     6   36.266498    1.383027   Continuing - TR contract
     7   36.266498    1.383027   Continuing - TR contract
     8   36.235038    0.864961                 Continuing
     9   36.220710    0.279083                 Continuing
    10   36.220710    0.279083   Continuing - TR contract
    11   36.220710    0.279083   Continuing - TR contract
    12   36.220710    0.279083   Continuing - TR contract
    13   36.219089    0.054231     Continuing - TR expand
    14   36.219023    0.002561                 Continuing
    15   36.219023    0.000294                 Continuing
    16   36.219023    0.000000                 Continuing
    17   36.219023    0.000000                 Continuing
  
  Iteration has terminated
    17   36.219023    0.000000                    Success
  
  There are 2 random effects, but max_print = 1, so not computing their summary information.
  Set max_print higher than 2 if you would like to summarize the random effects.
  Column 1 ['V1'] of item 2 is missing in item 1. Use fill=TRUE to fill with NA (NULL for list columns), or use.names=FALSE to ignore column names. use.names='check' (default from v1.12.2) emits this message and proceeds as if use.names=FALSE for  backwards compatibility. See news item 5 in v1.12.2 for options to control this message.
  Column 1 ['V1'] of item 2 is missing in item 1. Use fill=TRUE to fill with NA (NULL for list columns), or use.names=FALSE to ignore column names. use.names='check' (default from v1.12.2) emits this message and proceeds as if use.names=FALSE for  backwards compatibility. See news item 5 in v1.12.2 for options to control this message.
  Error in `source_file()`:
  ! In path: "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/aghq.Rcheck/tests/testthat/setup-01-optimization.R"
  Caused by error:
  ! 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─testthat::test_check("aghq")
    2. │ └─testthat::test_dir(...)
    3. │   └─testthat:::test_files(...)
    4. │     └─testthat:::test_files_serial(...)
    5. │       └─testthat:::test_files_setup_state(...)
    6. │         └─testthat::source_test_setup(".", env)
    7. │           └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
    8. │             └─base::lapply(...)
    9. │               └─testthat (local) FUN(X[[i]], ...)
   10. │                 └─testthat::source_file(path, env = env, chdir = chdir, wrap = wrap)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. └─base::.handleSimpleError(...) at tests/testthat/setup-01-optimization.R:826:0
   15.   └─testthat (local) h(simpleError(msg, call))
   16.     └─rlang::abort(...)
  Execution halted