Running ‘testthat.R’ [30s/31s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # ==================================================================== #
  > # TITLE                                                                #
  > # Antimicrobial Resistance (AMR) Analysis                              #
  > #                                                                      #
  > # SOURCE                                                               #
  > # https://gitlab.com/msberends/AMR                                     #
  > #                                                                      #
  > # LICENCE                                                              #
  > # (c) 2018-2020 Berends MS, Luz CF et al.                              #
  > #                                                                      #
  > # This R package is free software; you can freely use and distribute   #
  > # it for both personal and commercial purposes under the terms of the  #
  > # GNU General Public License version 2.0 (GNU GPL-2), as published by  #
  > # the Free Software Foundation.                                        #
  > #                                                                      #
  > # We created this package for both routine data analysis and academic  #
  > # research and it was publicly released in the hope that it will be    #
  > # useful, but it comes WITHOUT ANY WARRANTY OR LIABILITY.              #
  > # Visit our website for more info: https://msberends.gitlab.io/AMR.    #
  > # ==================================================================== #
  > 
  > library(testthat)
  > library(AMR)
  > 
  > test_check("AMR")
  ── 1. Failure: G-test works (@test-g.test.R#56)  ───────────────────────────────
  suppressWarnings(g.test(x)$p.value) is not strictly less than 1. Difference: NaN
  
  Class 'mic'
  [1] 1 2 4 8
  
  Logistic regression model (logit) with binomial distribution
  ------------------------------------------------------------
  
  Call:
  glm(formula = df_matrix ~ year, family = binomial)
  
  Deviance Residuals: 
      Min       1Q   Median       3Q      Max  
  -3.2579  -0.9245   0.0336   1.4185   3.0981  
  
  Coefficients:
               Estimate Std. Error z value Pr(>|z|)  
  (Intercept) -97.54685   49.32757  -1.978    0.048 *
  year          0.04850    0.02453   1.977    0.048 *
  ---
  Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
  
  (Dispersion parameter for binomial family taken to be 1)
  
      Null deviance: 42.518  on 13  degrees of freedom
  Residual deviance: 38.575  on 12  degrees of freedom
  AIC: 93.28
  
  Number of Fisher Scoring iterations: 3
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 291 | SKIPPED: 10 | WARNINGS: 0 | FAILED: 1 ]
  1. Failure: G-test works (@test-g.test.R#56) 
  
  Error: testthat unit tests failed
  Execution halted