Template:R from formula