Runs unpack_call() and adds a versioned dependency report, compact context
in Markdown and JSON, and a validation-plan skeleton.
Usage
slice_call(
expr,
output_dir,
max_depth = 5L,
overwrite = FALSE,
dispatch = c("candidates", "static"),
eval_dispatch = TRUE
)Arguments
- expr
An unevaluated function call, written as you would normally run it, e.g.
predict(fit, newdata = recent_data)orstats::fivenum(x). For S3 generics the dispatch argument can be evaluated once to determine the method, controlled byeval_dispatch.- output_dir
Directory to create the replay project in.
- max_depth
Maximum depth to follow same-package internal helpers.
- overwrite
Overwrite an existing non-empty
output_dir?- dispatch
How unresolved internal S3 dispatch is handled. The default,
"candidates", extracts package-internal candidate methods for runtime dispatch;"static"retains static-only extraction.- eval_dispatch
Should a computed (call-shaped) dispatch argument be evaluated once to resolve the S3/S4 method? The default
TRUEgives accurate method resolution but executes that piece of your code; the printed output says so whenever it happens. SetFALSEto leave computed dispatch unresolved and analyze the generic itself. Bare symbols are still inspected to resolve dispatch and may force a promise binding; literals are inspected directly.