rlang (version 0.2.0)

call_standardise: Standardise a call

Description

This is essentially equivalent to base::match.call(), but with experimental handling of primitive functions.

Usage

call_standardise(call, env = caller_env())

Arguments

call

Can be a call or a quosure that wraps a call.

env

The environment where to find the definition of the function quoted in call in case call is not wrapped in a quosure.

Value

A quosure if call is a quosure, a raw call otherwise.

Life cycle

In rlang 0.2.0, lang_standardise() was soft-deprecated and renamed to call_standardise(). See lifecycle section in call2() for more about this change.