Fix names for sigs

Share:

Description

Make anonymous functions and special functions safe.

Usage

1
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

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

## End(Not run)