sprintf_named: sprintf, with named references

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/sprintf_named.R

Description

This converts named references in a format string (marked by curly braces), and passes through to sprintf.

Usage

1

Arguments

fmt

a character vector of format strings, each of up to 8192 bytes.

...

values to be interpolated, optionally with names.

Value

a character vector.

Author(s)

Neal Fultz

References

https://stackoverflow.com/questions/17475803/sprintf-format-strings-reference-by-name/55423080#55423080

See Also

sprintf

Examples

1
sprintf_named("%{HIA}s!!! %{RYLAH}s", RYLAH="Rock You Like a Hurricane", HIA="Here I Am")

stackoverflow documentation built on Jan. 10, 2020, 9:07 a.m.