Skip to content

TeXCheckR

Parses LaTeX Documents for Errors

v0.8.1 · Feb 3, 2024 · GPL-2

Description

Checks LaTeX documents and .bib files for typing errors, such as spelling errors, incorrect quotation marks. Also provides useful functions for parsing and linting bibliography files.

Downloads

395

Last 30 days

8451st

395

Last 90 days

395

Last year

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 ERROR
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
ERROR r-devel-macos-arm64

tests

  Running ‘testthat.R’ [4s/4s]
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}Saving _problems/test_spellcheck-13.R
  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 
  Check subfiles:
  113.tex 
  Check subfiles:
  113.tex 
  Key: <key>
                      key   Author                              Title   date
                   <char>   <char>                             <char> <char>
  1: RMS2010-Hunter-EXPWY RMS, NSW hunter expressway – current status   <NA>
  2:        RMS2010Hunter RMS, NSW hunter expressway – current status   <NA>
       year
     <char>
  1:   2010
  2:   2010
  Key: <key>
                     key   Author                           Title   date   year
                  <char>   <char>                          <char> <char> <char>
  1: Treasury2014TES2013 Treasury tax expenditures statement 2013   <NA>   2014
  2:       Treasury2014f Treasury tax expenditures statement 2013   <NA>   2014
     line_no                                                       x  field
       <int>                                                  <char> <char>
  1:       1 key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney,    key
  2:       9 key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney,    key
                                                  value is_key
                                                 <char> <lgcl>
  1: Article{Terrill-2017-theConvo-Melbourne-vs-Sydney,   TRUE
  2: Article{Terrill-2017-theConvo-Melbourne-vs-Sydney,   TRUE
                                      key_value                   bib_file
                                         <char>                     <char>
  1: terrill-2017-theconvo-melbourne-vs-sydney, ./validate-bib/dup-key.bib
  2: terrill-2017-theconvo-melbourne-vs-sydney, ./validate-bib/dup-key.bib
                              bib_file line_no       key    value  authors
                                <char>   <int>    <char>   <char>   <char>
  1: validate-bib/near-dup-authors.bib       8 VicRoadsr VicRoads VicRoads
  author       = {Australian Taxation Office},✖[ FAIL 1 | WARN 0 | SKIP 15 | PASS 341 ]
  
  ══ Skipped tests (15) ══════════════════════════════════════════════════════════
  • Not yet implemented (1): 'test_split_report.R:4:3'
  • On CRAN (11): 'test-zzz-check-pkgs-spelling.R:4:3', 'test_check_biber.R:5:3',
    'test_check_biber.R:26:3', 'test_check_dashes.R:39:3',
    'test_check_labels.R:29:3', 'test_minimal_bib.R:4:3',
    'test_spellcheck.R:107:3', 'test_spellcheck.R:198:3', 'test_utils.R:47:3',
    'test_zReports.R:4:3', 'test_zReports.R:32:3'
  • Too noisy (1): 'test_check_consecutive_words.R:4:3'
  • empty test (2): 'test-locate_latex_argument.R:14:1',
    'test_replace_LaTeX_argument.R:27:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_spellcheck.R:9:3'): School funding report checks out ───────────
  Error in `test_check("TeXCheckR")`: Spellcheck failed on above line with 'OECD'
  
  Backtrace:
      ▆
   1. ├─testthat::expect_null(...) at test_spellcheck.R:9:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─TeXCheckR::check_spelling(...)
   5.   └─TeXCheckR:::stop(...)
  
  [ FAIL 1 | WARN 0 | SKIP 15 | PASS 341 ]
  Error:
  ! Test failures.
  Execution halted
OK r-devel-windows-x86_64

*


            
OK r-oldrel-macos-arm64

*


            
OK r-oldrel-macos-x86_64

*


            
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-macos-arm64

tests

  Running ‘testthat.R’ [4s/4s]
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}Saving _problems/test_spellcheck-13.R
  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 
 

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies clisymbols crayon data.table fastmatch hunspell hutils magrittr rstudioapi zoo hutilscpp TeXCheckR

Version History

new 0.8.1 Mar 9, 2026