Template:R from code