We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local_trace()
From renv:
renv_scope_trace <- function(what, tracer, envir = parent.frame()) { call <- sys.call() call[[1L]] <- base::trace call[["print"]] <- FALSE suppressMessages(eval(call, envir = parent.frame())) defer(suppressMessages(untrace(substitute(what))), envir = envir) }
The text was updated successfully, but these errors were encountered:
Hmmmm, this is not as useful as expected because .doTrace's implementation is sub-optimal:
.doTrace
f <- function() { "x" } trace(f, quote(return("y"))) #> [1] "f" body(f) #> { #> .doTrace(return("y"), "on entry") #> { #> "x" #> } #> } f() #> Tracing f() on entry #> [1] "x" .doTrace <- function(expr, msg) { on <- tracingState(FALSE) if (on) { on.exit(tracingState(TRUE)) expr } invisible() } f() #> [1] "y"
Created on 2023-06-03 with reprex v2.0.2
Sorry, something went wrong.
We can't figure out a work around, so I think this is unfortunately a deadend.
No branches or pull requests
From renv:
The text was updated successfully, but these errors were encountered: