Vectorized sprintf

What would be a Julia equivalent of the following R one liner?

f <- function(fmt, ...) paste(sprintf(fmt, ...), collapse=", ")

f("%d %s", 1:3, LETTERS[1:3])
"1 A, 2 B, 3 C"

I tried looping around Julia’s @sprintf but, being a macro, it doesn’t seem to work in this context:

f(fmt, args...) = @sprintf(fmt, args...)
ERROR: LoadError: ArgumentError: @sprintf: first argument must be a format string

This should help you: