Wanting to post with some regularity in this blog, I needed to have a quick, easy way to do so. Importantly, I wanted to do this for free!
I searched the internet, and found RWordPress. This package does just that, helps the user to post in WordPress (resorting also to knitr).
I will provide here the code I used to do this (which I did not use for this post!):
#Loading required packages
#Defining login options
options(WordPressLogin = c(your_username = “your_password”),
WordpressURL = ‘https://yourblog.wordpress.com/xmlrpc.php’😉
#Import the Rmd file and update it to WordPress
title = ‘title_here’,
publish = FALSE, #not to be published you can later edit it in WordPress
action = “newPost”)