You may notice that I don’t have that many posts on my blog, and they are all about R.
The paucity of my posts makes me a bit sad, but not much, really…
What makes (or better, used to make me) sad is that posts of R code (used to) look awful.
However, your code doesn’t deserve and doesn’t need to be ugly. You can find online several beautifiers.
I found out that WordPress now enables R syntax highlighting. I can assure you that it’s fairly easy (I did it!). Instructions are available on this R-bloggers page.
Additional instructions are available here
Since when I tried these two tools, I am an happy-R blogger!