Part I of my post “Correlation Cats” is up.
A few points if anyone else tries to use rmarkdown to post.
- Latex math won’t work on the stan blog.
- I used
knit2wp
and works only ok. Lots of clean up after.
* Related: I can’t update the code blocks to get syntax highlighting for R. - I chose to just take screenshots of a bunch of things as it looked better.
Here’s the R code to post directly from R to the site
if (!require('knitr')) {
install.packages("knitr")
}
if (!require('devtools')) {
install.packages("devtools")
}
if (!require('RWordPress')) {
devtools::install_github(c("duncantl/XMLRPC", "duncantl/RWordPress"))
}
#activate the necessary libraries
library(flexdashboard)
library(RWordPress)
library(knitr)
library(XMLRPC)
library(reshape2)
library(RCurl)
options(WordpressLogin = c(your_user_name = 'your_password'),
WordpressURL='https://blog.mc-stan.org/xmlrpc.php')
knit2wp(input='post.Rmd', title = 'your_blog_post_title', post=FALSE, action = "newPost")