fix_fn_names: Fix names for sigs

View source: R/utils.R

fix_fn_namesR Documentation

Fix names for sigs

Description

Make anonymous functions and special functions safe.

Usage

fix_fn_names(fn_name)

Arguments

fn_name

A character vector.

Value

A character vector.

Note

Strings beginning with “function” are given the value "..anonymous..".

Special function names are wrapped in backquotes.

Examples

## Not run: 
fix_fn_names(c("%foo%", "?", "foo bar", "repeat", "function"))

## End(Not run)

sig documentation built on April 21, 2022, 5:07 p.m.