yihui / tinytex

Compare f834345 ... +0 ... 7bc95c3

Coverage Reach
latex.R install.R tlmgr.R

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

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

@@ -82,7 +82,20 @@
Loading
82 82
    }
83 83
  }
84 84
  force(extra_packages)  # evaluate it before installing another version of TinyTeX
85 -
  if (version == 'daily') version = ''
85 +
  if (version == 'daily') {
86 +
    version = ''
87 +
    # test if https://yihui.org is accessible because the daily version is
88 +
    # downloaded from there
89 +
    if (missing(version) && !url_accessible('https://yihui.org')) {
90 +
      warning(
91 +
        "The daily version of TinyTeX does not appear to be accessible. ",
92 +
        "Switching to version = 'latest' instead. If you are sure to install ",
93 +
        "the daily version, call tinytex::install_tinytex(version = 'daily') ",
94 +
        "(which may fail)."
95 +
      )
96 +
      version = 'latest'
97 +
    }
98 +
  }
86 99
  user_dir = install(user_dir, version, add_path, extra_packages)
87 100
88 101
  opts = options(tinytex.tlmgr.path = find_tlmgr(user_dir))
@@ -399,6 +412,15 @@
Loading
399 412
  download_file(url, file)
400 413
}
401 414
415 +
# TODO: use xfun::url_accessible()
416 +
url_accessible = function(url) {
417 +
  tf = tempfile(); on.exit(unlink(tf), add = TRUE)
418 +
  tryCatch(suppressWarnings({
419 +
    xfun::download_file(url, tf, quiet = TRUE)
420 +
    TRUE
421 +
  }), error = function(e) FALSE)
422 +
}
423 +
402 424
#' Copy TinyTeX to another location and use it in another system
403 425
#'
404 426
#' The function \code{copy_tinytex()} copies the existing TinyTeX installation

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
R -0.26% 12.80%
Project Totals (3 files) 12.80%
Loading