R/errors.R
changed.
Showing 1 of 1 files from the diff.
@@ -128,6 +128,11 @@
Loading
128 | 128 | # ### 3.0.0 -- 2022-04-19 |
|
129 | 129 | # |
|
130 | 130 | # * Major rewrite, use rlang compatible error objects. New API. |
|
131 | + | # |
|
132 | + | # ##3 3.0.1 -- 2022-06-17 |
|
133 | + | # |
|
134 | + | # * Remove the `rlang_error` and `rlang_trace` classes, because our new |
|
135 | + | # deparsed `call` column in the trace is not compatible with rlang. |
|
131 | 136 | ||
132 | 137 | err <- local({ |
|
133 | 138 |
@@ -174,7 +179,7 @@
Loading
174 | 179 | ||
175 | 180 | new_error <- function(..., call. = TRUE, srcref = NULL, domain = NA) { |
|
176 | 181 | cond <- new_cond(..., call. = call., domain = domain, srcref = srcref) |
|
177 | - | class(cond) <- c("rlib_error_3_0", "rlib_error", "rlang_error", "error", "condition") |
|
182 | + | class(cond) <- c("rlib_error_3_0", "rlib_error", "error", "condition") |
|
178 | 183 | cond |
|
179 | 184 | } |
|
180 | 185 |
@@ -341,7 +346,7 @@
Loading
341 | 346 | name <- native_name(.NAME) |
|
342 | 347 | err <- new_error("Native call to `", name, "` failed", call. = call1) |
|
343 | 348 | cerror <- if (inherits(e, "simpleError")) "c_error" |
|
344 | - | class(err) <- c(cerror, "rlib_error_3_0", "rlib_error", "rlang_error", "error", "condition") |
|
349 | + | class(err) <- c(cerror, "rlib_error_3_0", "rlib_error", "error", "condition") |
|
345 | 350 | throw_error(err, parent = e) |
|
346 | 351 | } |
|
347 | 352 | ) |
@@ -375,7 +380,7 @@
Loading
375 | 380 | name <- native_name(.NAME) |
|
376 | 381 | err <- new_error("Native call to `", name, "` failed", call. = call1) |
|
377 | 382 | cerror <- if (inherits(e, "simpleError")) "c_error" |
|
378 | - | class(err) <- c(cerror, "rlib_error_3_0", "rlib_error", "rlang_error", "error", "condition") |
|
383 | + | class(err) <- c(cerror, "rlib_error_3_0", "rlib_error", "error", "condition") |
|
379 | 384 | throw_error(err, parent = e) |
|
380 | 385 | } |
|
381 | 386 | ) |
@@ -534,7 +539,7 @@
Loading
534 | 539 | ) |
|
535 | 540 | trace$call <- calls |
|
536 | 541 | ||
537 | - | class(trace) <- c("rlib_trace_3_0", "rlang_trace", "rlib_trace", "tbl", "data.frame") |
|
542 | + | class(trace) <- c("rlib_trace_3_0", "rlib_trace", "tbl", "data.frame") |
|
538 | 543 | trace |
|
539 | 544 | } |
|
540 | 545 |
Files | Coverage |
---|---|
R | 17.52% |
Project Totals (36 files) | 17.52% |
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.