make_c_call: Build concatenating call

View source: R/utils.R

make_c_callR Documentation

Build concatenating call

Description

This function takes a vector of values and returns a c call. If the vector has only one element, the element is returned directly.

Usage

make_c_call(choices)

Arguments

choices

A vector of values.

Value

A c call.

Examples

# use non-exported function from teal.slice
make_c_call <- getFromNamespace("make_c_call", "teal.slice")
make_c_call(1:3)
make_c_call(1)


teal.slice documentation built on May 29, 2024, 1:39 a.m.