You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure (test-icecream.R:76:3): source file is correctly identified ─────────
`f()` did not throw the expected message.
I took a look and it's because you're subsetting the object returned by trace_back(). The structure of this object was undocumented and has now changed (as well as become public). You can fix your package with this patch:
modified R/ic.R
@@ -25,10 +25,10 @@ ic <- function(x) {
# In the event that icecream is totally disabled we will just return the input.
if (getOption("icecream.enabled")) {
trace <- trace_back()
- num_calls <- length(trace$calls)+ num_calls <- length(trace$call)- parent_ref <- if (num_calls > 1) trace$calls[[num_calls - 1]][[1]] else NULL- ref <- attr(trace$calls[[num_calls]], "srcref")+ parent_ref <- if (num_calls > 1) trace$call[[num_calls - 1]][[1]] else NULL+ ref <- attr(trace$call[[num_calls]], "srcref")
loc <- src_loc(ref)
# Case when location of file is unavailable
We plan to release rlang 1.0.0 in 2 to 4 weeks.
The text was updated successfully, but these errors were encountered:
Hello, I see in revdep checks:
I took a look and it's because you're subsetting the object returned by
trace_back()
. The structure of this object was undocumented and has now changed (as well as become public). You can fix your package with this patch:We plan to release rlang 1.0.0 in 2 to 4 weeks.
The text was updated successfully, but these errors were encountered: