Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

call_inspect

Inspect a call


Description

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.

Examples

call_inspect(foo(bar), "" %>% identity())

rlang

Functions for Base Types and Core R and 'Tidyverse' Features

v0.4.11
MIT + file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], mikefc [cph] (Hash implementation based on Mike's xxhashlite), Yann Collet [cph] (Author of the embedded xxHash library), RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.