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

lang_standardise(lang)

Arguments

lang

Can be a call (language object), a formula quoting a call in the right-hand side, or a frame object from which to extract the call expression.

Value

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