# Format a single-entry character vector with variable mechanism
rprintf("Hello, $name", name="world")
rprintf("$name ($age years old)",name="Ken",age=24)
rprintf("He is $age but has a height of $height:.2fcm",age=18,height=190)
rprintf("$a, $b:.1f, $c:+.2f, $b, $a:.0f",a=1.56,b=2.34,c=3.78)Run the code above in your browser using DataLab