# Stan blog post Correlation Cats

**URL:** https://discourse.mc-stan.org/t/stan-blog-post-correlation-cats/19259
**Category:** Publicity
**Created:** [November 13, 2020, 5:40pm UTC](https://discourse.mc-stan.org/t/stan-blog-post-correlation-cats/19259 "2020-11-13T17:40:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![spinkney](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@spinkney](https://discourse.mc-stan.org/u/spinkney)
#### Post date: [November 13, 2020, 5:40pm UTC](https://discourse.mc-stan.org/t/stan-blog-post-correlation-cats/19259/1 "2020-11-13T17:40:04Z")

</div>

Part I of my post [“Correlation Cats”](https://blog.mc-stan.org/2020/11/13/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")

```

---

<div class="post-metadata">

### Author: ![spinkney](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@spinkney](https://discourse.mc-stan.org/u/spinkney)
#### Post date: [November 13, 2020, 7:54pm UTC](https://discourse.mc-stan.org/t/stan-blog-post-correlation-cats/19259/2 "2020-11-13T19:54:56Z")

</div>

Apparently you **can** include latex by

```
$latex latexify_this$

```

thanks @syclik for pointing that out
