One of the great things about knitr is its flexibility. Here I set knitr up to publish to Wordpress. I will then use RWordPress to publish the output automatically. I will base the wordpress format on the github-flavored markdown format. I change the markup for output and source-code to use the nice codeblocks provided by the syntax highlighter plugin. I also specify that images should use the html markup instead of github markup, and I will take advantage of knitr support for imgur to upload and host the image files automatically. Now we write some code chunks in this markdown file: We can also produce plots which are uploaded to imgur.com: We can then post the result using RWordPress: Above we specify publish = FALSE which will make the post upload as a draft where we can preview it. To publish directly we could omit that command. Giving a title is intuitive. Note that we have to read the text in and substitue newline characters for line-breaks. Note that this requires setting the login options securely in .Rprofile, for example: It would be nice to use the uploadFile function from RWordPress to host the images, but that seems to be giving me trouble at the moment.