I would like to be able to write some R code in markdown (including images), compile it with knitr, and publish it into wordpress (including uploading the images to the blog, not as text in the post). All from R.
I am thinking that RWordPress might have some useful tools for the job, though it wasn't updated for about two years now.
Do you think this is "easily" possible? Does any of you have any suggestions regarding this? Any lead will be appreciated.
(p.s: This question is my holy-grail of the year)
newPost
, I don't see why this would be a problem. Once you knit your markdown document, it will make a .html. From there, you can strip out all the non-essential html and push it as part of a post.knit2wp()
intoknitr
v1.1 after I have done some tests onRWordPress
; images can be uploaded to Imgur byknitr::imgur_upload()
. If anyone wants to contribute, please feel free to send pull requests :)