call_inspect

0th

Percentile

Inspect a call

This function is useful for quick testing and debugging when you manipulate expressions and calls. It lets you check that a function is called with the right arguments. This can be useful in unit tests for instance. Note that this is just a simple wrapper around base::match.call().

Usage
call_inspect(...)
Arguments
...

Arguments to display in the returned call.

Aliases
  • call_inspect
Examples
library(rlang) # NOT RUN { call_inspect(foo(bar), "" %>% identity()) invoke(call_inspect, list(a = mtcars, b = letters)) # }
Documentation reproduced from package rlang, version 0.2.0, License: GPL-3

Community examples

Looks like there are no examples yet.