Template:R from calling code