Skip to content
Prev 7118 / 63421 Next

Commas in formatC

Martin Maechler wrote:
Hi Martin,

Maybe this is a step in the wrong direction, but I actually like using C
string formatting, eg I would like to be able to type something like

  str <- stringC("The man called %s is %i feet tall", "Sven", 6)

which is also used in Python via the string formatting operator, '%'. 
Is this a possibility?

Cheers, Jonathan.