Learn R Programming

elixir (version 0.1.0)

lang2str: Convert an expression into a string

Description

The opposite of str2lang(), lang2str() converts an expression into a character string. Note that lang2str() does not support the normal expression syntax for elixir, so just expects an already-parsed expression.

Usage

lang2str(x)

Value

A character string suitable for printing.

Arguments

x

Expression to convert to a string.

Details

This function is essentially identical to deparse1(), which has been available since R 4.0.0, except with collapse = "" instead of collapse = " ".

Examples

Run this code
lang2str(quote(a + b + c))

Run the code above in your browser using DataLab