r-lib / pkgload
Showing 1 of 3 files from the diff.
Other files ignored by Codecov
NEWS.md has changed.

@@ -241,14 +241,12 @@
Loading
241 241
  if (!(name %in% loadedNamespaces()))
242 242
    stop(name, " is not a registered namespace.")
243 243
244 -
  # This is a hack to work around unloading pkgload itself. The unloading
245 -
  # process normally makes other pkgload functions inaccessible,
246 -
  # resulting in "Error in unload(pkg) : internal error -3 in R_decompress1".
247 -
  # If we simply force them first, then they will remain available for use
248 -
  # later. This also makes it possible to use `load_all()` on pkgload itself.
249 -
  if (name == "pkgload") {
250 -
    eapply(ns_env(name), force, all.names = TRUE)
251 -
  }
244 +
  # Force all bindings of the namespace in case of dangling
245 +
  # references. If lazy bindings are forced after the namespace is
246 +
  # unloaded, it might lead to decompress errors if unloaded or to
247 +
  # inconsistencies if reloaded (the bindings are resolved in the new
248 +
  # namespace).
249 +
  eapply(ns_env(name), force, all.names = TRUE)
252 250
253 251
  # Remove the item from the registry
254 252
  do.call(rm, args = list(name, envir = ns_registry()))
Files Coverage
R 81.80%
Project Totals (26 files) 81.80%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
        informational: true
10
    patch:
11
      default:
12
        target: auto
13
        threshold: 1%
14
        informational: true
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