Running ‘testthat.R’ [16s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(TeXCheckR)
  > 
  > test_check("TeXCheckR")
  
  \caption present without label.
  ✖ 72: \caption{Figure caption}
  (All captions must have a \label and the label must occur on the same line.)
  
  Dash likely masquerading as hyphen. Use -- for a dash.
  ✖ 7: But hyphens pretending to be hyphens are not acceptable - ever.
  
  IMPORTANT: make sure you are replacing a hyphen with two hyphens, not a unicode dash  –
  
  
  Dash likely masquerading as hyphen. Use -- for a dash.
  ✖ 9: Sometimes, inline equations are tricky: \(x - (a - b)\) I might - by mistake - but dashes between equations \(x \neq 3\).
  
  IMPORTANT: make sure you are replacing a hyphen with two hyphens, not a unicode dash  –
  
  
  Hyphen adjacent to en-dash.
  ✖ 4: Teachers get stressed when students don't engage in learning -– even
  
  
  Hyphen adjacent to en-dash.
  ✖ 4: Teachers get stressed when students don't engage in learning –- even
  
  
  Em-dashes not permitted.
  ✖ 6: Teachers get stressed when students don't engage in learning — even
  
  
  Unescaped $.
  ✖ 4: Some forbidden math $1 + 1 = 2$.
                            ^
  If you meant to print a dollar sign, use \$. If you want to use math-mode, use \(...\), not $...$ .
  
  Ellipsis typed without using macro.
  ✖ 4: A forbidden ellipsis ...
  Use \dots{} for an ellipsis, rather than three dots (...) or \u2026 (…).
  
  \label used without prefix.
  ✖ 1: \section{Example section with a label but no prefix}\label{invalid-prefix}
  Use fig: tbl: box: chap: subsec: paragraph: rec: fn: in every label.
  ✖ 1: \chapter{A chapter with wrong prefix}\label{sec:should-be-chap:}
  Unlabelled chapter or \label without chap: prefix.
  ✖ 1: \chapter{A chapter with wrong prefix}\label{sec:should-be-chap:}
  For every \chapter{} ensure there is a \label{chap:...} on the same line.
  ✖ 1: \chapter{A chapter without a label}
  Unlabelled chapter or \label without chap: prefix.
  ✖ 1: \chapter{A chapter without a label}
  For every \chapter{} ensure there is a \label{chap:...} on the same line.
  
  Cross-reference to chapter using Vref or Cref.
  ✖ 2: \Vref{chap:good} should be \Chapref{chap:good}.
  Cross-references to chapters must use Chapref or topref.
  
  Mislabeled or empty cross-references target for Chapref or topref
  ✖ : Mislabeled / empty cross-reference target for a \Chapref / \topref etc. You have entered a \Chapref to cross-reference a chapter (which is correct!). However the label you have referenced does not exist (perhaps it was renamed or removed?). I saw:
  	\Chapref{chap:incorrectly-refd}
  Yet the only valid labels are:
  	chap:not-correct-refd
  
  
  Closing quote used at beginning of word. Use a backtick for an opening quote, e.g. The word `ossifrage' is quoted.
  ✖ 4: 'There is a...
      ^
  
  
  Closing quote used at beginning of word. Use a backtick for an opening quote, e.g. The word `ossifrage' is quoted.
  ✖ 4: "There is a ba...
         ^
  
  
  Closing quote used at beginning of word. Use a backtick for an opening quote, e.g. The word `ossifrage' is quoted.
  ✖ 4: ('There is a b...
         ^
  
  
  Closing quote used at beginning of word. Use a backtick for an opening quote, e.g. The word `ossifrage' is quoted.
  ✖ 4: He interrupted---'There is a b...
                         ^
  
  
  Capital letter ends sentence, but sentence-ending period mark absent.
  ✖ 165: Many governments have tried to change the GST. But few have succeeded.
  Sentences which end with a capital letter need to be signalled with a sentence-ending period. (\@.)
  
  Lower-case \Cref used. \Vref and \Cref are case-sensitive and the lower-case forms are not permitted.
  ✖ 6: Don't use \vref{sec:some.label}
  
  
  Hard-coded xref in document.
  ✖ 6: But sometimes I will. (See Section 5.)
  All xrefs need to use \Cref or \Vref (or \Chapref for cross-references to chapters). If you need to use this phrase, you can use a non-breaking space e.g. 'Section~81 of the Constitution.
  
  Use postnote for pagerefs.
  ✖ 4: This is a citation without a postnote: \textcite[32]{Knuth-A}.
  
  
  Unnecessary p in postnote.
  ✖ 4: This is a citation without a postnote: \textcite[][p. 32]{Knuth-A}.
  
  
  Unnecessary p in postnote.
  ✖ 4: This is a citation with a double-p: \textcite[][pp. 32--34]{Knuth-A}.
  
  
  Use of singular form of textcite or footcite.
  ✖ 5: Should be plural form \footcite{ref1}{ref2}
  
  
  Page reference not in correct format.
  ✖ 4: This is a citation with an extended postnote: \textcite[][Chapter~4, p. 32]{Knuth-A}.
  Use a tilde to separate explicit page-number references. (e.g. p.~32)
  
  Page reference not in correct format.
  ✖ 4: This is a citation with an extended postnote: \textcite[][Chapter~4, p.32]{Knuth-A}.
  Use a tilde to separate explicit page-number references. (e.g. p.~32)
  
  Space inserted before \footnote
  ✖ 11: \footnote{\gls{HELP} lending, tuition funding, and most other higher education programs are special appropriations from consolidated government revenue.
  
  
  Footnote does not end with full stop.
  ✖ 5: 
  \footnote
           {SS}
  
  
  
  Punctuation after footnotemark.
  ✖ NA: 
  
  
  Punctuation mark after footcite number 
  ✖ FALSE: 
  .
  
  Space inserted before \footnote
  ✖ 5: 	\footnote{No space.}
  
  
  Space inserted before \footnote
  ✖ 5: Ordinary space (and text) before toofnote: lazy dog \footnote{Space.}
  
  
  Space inserted before \footnote
  ✖ 4: Ordinary space (and text) before toofnote: lazy dog \footnote{Space.}
  
  
  Space inserted before \footnote
  ✖ 5: \footnote{Space.}
  
  
  Punctuation mark after footcite number 
  ✖ FALSE: 
  .
  
  Leading spacing in footnotetext.
  ✖ 9: Footnote text with leading space.\footnote{ Otherwise correct.}
  
  
  \footnote/\footcite cannot occur twice on the same line in the source. Break this sentence up into multiple lines.
  ✖ 4: A sentence\footnote{With two toofnotes.} and \footnote{Here is another toofnote.}
  
  Check subfiles:
  chap1 
  chap2 
  
  Spellcheck failed: 'asdf'
  ✖ 1: Some text needs a check for asdf spelling.
                                    ^^^^
  
  
  
  Use the macros \etc, \ie, and \eg provided for consistent formatting.
  ✖ 2: A sentence with etc, rather than \etc.
  
  
  Spellcheck failed: 'sdiuhfiuhzdsfidsuhf'
  ✖ 5: This is a word that has been misspelled. sdiuhfiuhzdsfidsuhf
                                                 ^^^^^^^^^^^^^^^^^^^
  
  
  
  Spellcheck failed: 'sdiuhfiuhzdsfidsuhf'
  ✖ 9: This is a word that has been misspelled. \sdiuhfiuhzdsfidsuhf{sdiuhfiuhzdsfidsuhf sdiuhfiuhzdsfidsuhf}
                                                                                          ^^^^^^^^^^^^^^^^^^^
  
  
  
  pre_release = TRUE but 'ignore spelling in' line is present.
  ✖ 3: % ignore_spelling_in: sdiuhfiuhzdsfidsuhf
  
  
  'skillset' present but prohibited in preamble.
  ✖ 6: Many teachers rely on many skill sets, but there is one skillset that is the best.
  
  
  'skillset' present but prohibited in preamble.
  ✖ 6: Many teachers rely on many skill sets, but there is one skillset that is the best.
  
  
  'skillset' present but prohibited in preamble.
  ✖ 7: Many teachers rely on many skill sets, but there is one skillset that is the best.
  
  Check subfiles:
  tex/skill-set 
  
  'skillset' present but prohibited in preamble.
  ✖ 3: Many teachers rely on many skill sets, but there is one skillset that is the best.
  
  
  'percent\b' present but prohibited in preamble.
  ✖ 6: The Dow rose by 10 percent.
  
  
  Should be upper case G in government.
  ✖ 4: This is incorrect: the NSW government loves stamp duty.
  
  
  Should be upper case G in government.
  ✖ 4: This is incorrect: the ACT government loves stamp duty.
  
  
  Should be upper case G in government.
  ✖ 4: This is incorrect: the NT government loves stamp duty.
  
  
  Should be upper case G in government.
  ✖ 4: This is incorrect: the Queensland government loves stamp duty.
  
  
  Should be upper case G in government.
  ✖ 4: This is incorrect: the WA government loves stamp duty.
  
  
  Missing space between sentence. Likely reason: forgotten space.
  ✖ 1: Systems should identify and invest in a few key tools to assist teachers and schools.One area is in student feedback surveys. Students themselves can be an excellent source of information on their own levels of engagement in the classroom, discussed in %
  
  1. Failure: Should error (@test_spellcheck.R#81) -------------------------------
  error$message does not match "Spellcheck".
  Actual value: "Missing space between sentence. Lower-case letter followed by full stop followed by capital letter."
  
  
  
  Spellcheck failed: 'Sdyney'
  ✖ 7: While most drivers in most parts of Sdyney and Melbourne rarely experience gridl
                                            ^^^^^^
  
  
  
  Spellcheck failed: 'Sdyney'
  ✖ 7: While most drivers in most parts of Sdyney and Melbourne rarely experience gridl
                                            ^^^^^^
  
  
  
  Bill title in upright font.
  ✖ 3: 
  
  
  Possible duplicates in bibliography.
  ✖ : Possible duplicates in bibliographies.
  
  
                    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
  
  Possible duplicates in bibliography.
  ✖ : Possible duplicates in bibliographies.
  
  
                   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
  
  Duplicate bib key used.
  ✖ 2: 
  Compare the two entries above. If they are identical, delete one. If they are distinct, choose a different bib key. (Note: keys are case-insensitive.)
  
  ./validate-bib/field-broken-over2lines.bib contains line which is neither a key, nor field, nor closing.
  ✖ 5: Metro Line on Housing Prices},
  Ensure every line in bibliography is one:
  	@<EntryType>,
  	field = {  <- including spaces around equals sign
  	or is a single closing brace, or a blank line. If you can, run
  	lint_bib('./validate-bib/field-broken-over2lines.bib')
                              bib_file line_no       key    value  authors
  1: validate-bib/near-dup-authors.bib       8 VicRoadsr VicRoads VicRoads
  
  Same author used with inconsistent upper/lowercase.
  ✖ 28: 
  Ensure the entries above are used with consistent case so ibid/idem's are respected.
  testthat results ================================================================
  OK: 198 SKIPPED: 3 FAILED: 1
  1. Failure: Should error (@test_spellcheck.R#81) 
  
  Error: testthat unit tests failed
  Execution halted