Running ‘testthat.R’ [9s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(TeXCheckR)
  > 
  > test_check("TeXCheckR")
  ✖ 4: \chapter{A chapter with wrong prefix}\label{sec:should-be-chap:}✖ 4: \chapter{A chapter without a label}── 1. Error: Multi-lines (@test_extract_LaTeX_argument.R#119)  ─────────────────
  there is no package called 'readr'
  1: readr::read_lines at testthat/test_extract_LaTeX_argument.R:119
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 2. Error: Road congestion example (@test_extract_LaTeX_argument.R#140)  ─────
  there is no package called 'readr'
  1: readr::read_lines at testthat/test_extract_LaTeX_argument.R:140
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 3. Error: Environments (@test_extract_LaTeX_argument.R#193)  ────────────────
  there is no package called 'readr'
  1: readr::read_lines at testthat/test_extract_LaTeX_argument.R:193
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  Check subfiles:
  chap1.tex 
  chap2.tex 
  Check subfiles:
  a1.tex 
  Check subfiles:
  a1.tex 
  Check subfiles:
  tex/skill-set.tex 
  Check subfiles:
  us-spelling.tex 
  
                    key   Author                              Title date year
   RMS2010-Hunter-EXPWY RMS, NSW hunter expressway – current status <NA> 2010
          RMS2010Hunter RMS, NSW hunter expressway – current status <NA> 2010
  
                   key   Author                           Title date year
   Treasury2014TES2013 Treasury tax expenditures statement 2013 <NA> 2014
         Treasury2014f Treasury tax expenditures statement 2013 <NA> 2014
      line_no
   1:       2
   2:       3
   3:       4
   4:       5
   5:       6
   6:      10
   7:      11
   8:      12
   9:      13
  10:      14
  11:       1
  12:       9
                                                                                                                                                x
   1:                                                                                                                 author     \t{Alan Davies},
   2:                                                                                                                  date       \t{2016-03-08},
   3:                                                                         title      \t{Melbourne Metro: what do you get for \\$10~Billion?},
   4:                                                                                                       journal    \t{The Urbanist (Crikey)},
   5:                          url        \t{https://blogs.crikey.com.au/theurbanist/2016/03/08/melbourne-metro-what-do-you-get-for-10-billion/},
   6:                                                                                                              author     \t{Marion Terrill},
   7:                                                                                                                  date       \t{2017-07-03},
   8:                                  title      \t{Stuck in traffic: busting Melbourne versus Sydney myths and identifying the worst commutes},
   9:                                                                                                            journal    \t{The Conversation},
  10: url        \t{https://theconversation.com/stuck-in-traffic-busting-melbourne-versus-sydney-myths-and-identifying-the-worst-commutes-79343},
  11:                                                                                     key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney,
  12:                                                                                     key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney,
            field
   1: author     
   2: date       
   3: title      
   4: journal    
   5: url        
   6: author     
   7: date       
   8: title      
   9: journal    
  10: url        
  11:         key
  12:         key
                                                                                                                               value
   1:                                                                                                                 {Alan Davies},
   2:                                                                                                                  {2016-03-08},
   3:                                                                         {Melbourne Metro: what do you get for \\$10~Billion?},
   4:                                                                                                       {The Urbanist (Crikey)},
   5:                          {https://blogs.crikey.com.au/theurbanist/2016/03/08/melbourne-metro-what-do-you-get-for-10-billion/},
   6:                                                                                                              {Marion Terrill},
   7:                                                                                                                  {2017-07-03},
   8:                                  {Stuck in traffic: busting Melbourne versus Sydney myths and identifying the worst commutes},
   9:                                                                                                            {The Conversation},
  10: {https://theconversation.com/stuck-in-traffic-busting-melbourne-versus-sydney-myths-and-identifying-the-worst-commutes-79343},
  11:                                                                             Article{Terrill-2017-theConvo-Melbourne-vs-Sydney,
  12:                                                                             Article{Terrill-2017-theConvo-Melbourne-vs-Sydney,
      is_key                                  key_value
   1:  FALSE                                       <NA>
   2:  FALSE                                       <NA>
   3:  FALSE                                       <NA>
   4:  FALSE                                       <NA>
   5:  FALSE                                       <NA>
   6:  FALSE                                       <NA>
   7:  FALSE                                       <NA>
   8:  FALSE                                       <NA>
   9:  FALSE                                       <NA>
  10:  FALSE                                       <NA>
  11:   TRUE terrill-2017-theconvo-melbourne-vs-sydney,
  12:   TRUE terrill-2017-theconvo-melbourne-vs-sydney,
                        bib_file
   1: ./validate-bib/dup-key.bib
   2: ./validate-bib/dup-key.bib
   3: ./validate-bib/dup-key.bib
   4: ./validate-bib/dup-key.bib
   5: ./validate-bib/dup-key.bib
   6: ./validate-bib/dup-key.bib
   7: ./validate-bib/dup-key.bib
   8: ./validate-bib/dup-key.bib
   9: ./validate-bib/dup-key.bib
  10: ./validate-bib/dup-key.bib
  11: ./validate-bib/dup-key.bib
  12: ./validate-bib/dup-key.bib
                              bib_file line_no       key    value  authors
  1: validate-bib/near-dup-authors.bib       8 VicRoadsr VicRoads VicRoads
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 264 SKIPPED: 9 FAILED: 3
  1. Error: Multi-lines (@test_extract_LaTeX_argument.R#119) 
  2. Error: Road congestion example (@test_extract_LaTeX_argument.R#140) 
  3. Error: Environments (@test_extract_LaTeX_argument.R#193) 
  
  Error: testthat unit tests failed
  Execution halted