yihui / tinytex
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
DESCRIPTION has changed.

@@ -408,7 +408,12 @@
Loading
408 408
check_extra = function(file) {
409 409
  length(m <- latex_warning(file, FALSE)) > 0 &&
410 410
    length(grep('^Package ([^ ]+) Warning:', m)) > 0 &&
411 -
    any(check_babel(m), check_glossaries(m), check_datetime2(m))
411 +
    any(
412 +
      check_babel(m),
413 +
      check_glossaries(m),
414 +
      check_datetime2(m),
415 +
      check_polyglossia(m)
416 +
    )
412 417
}
413 418
414 419
check_babel = function(text) {
@@ -427,6 +432,16 @@
Loading
427 432
  tlmgr_install(m) == 0
428 433
}
429 434
435 +
# Package polyglossia Warning: No hyphenation patterns were loaded for `hungarian'
436 +
# Package polyglossia Warning: No hyphenation patterns were loaded for British English
437 +
check_polyglossia = function(text) {
438 +
  r = "^Package polyglossia Warning: No hyphenation patterns were loaded for (`[^']+'|British English).*"
439 +
  if (length(m <- grep_sub(r, '\\1', text)) == 0) return(FALSE)
440 +
  m[m == 'British English'] = 'english'
441 +
  m = gsub("[`']", '', m)
442 +
  tlmgr_install(paste0('hyphen-', m)) == 0
443 +
}
444 +
430 445
# Package datetime2 Warning: Date-Time Language Module `english' not installed on
431 446
# input line xxx.
432 447
check_datetime2 = function(text) {
Files Coverage
R 12.61%
Project Totals (3 files) 12.61%
1
comment: false
2

3
coverage:
4
  status:
5
    project: off
6
    patch: off
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading