printf: printf - to format a string and print it

View source: R/utils.R

printfR Documentation

printf - to format a string and print it

Description

printf calls sprintf of its parameters to build the error message and prints with the given message

Usage

printf(...)

Arguments

...

Arguments passed on to base::sprintf

fmt

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

Author(s)

L.Pavot

Examples


file <- "/tmp/test"
printf("Error in file: ", file)


W4MRUtils documentation built on Sept. 8, 2023, 5:11 p.m.