R powered html formatter