我一直在尝试publish an rChart使用knit2wp
功能进入我的博客。但是,在本地我可以让图表渲染,但是当我发布它时,图表就变成了文本......
我有一个Rmd文件,如下所示:
library(rCharts)
r1 <- rPlot(mpg ~ wt, data = mtcars, type = 'point')
r1$print('inline', cdn = TRUE,include_assets = TRUE)
或
r1$print('iframesrc', cdn = TRUE)
要发布我使用它:
knit2wp('test.Rmd',
title = 'test',
options(WordpressLogin = c(LOGIN = 'PASS'),
WordpressURL = 'https://dadosdadosdados.wordpress.com/xmlrpc.php'),
shortcode = c(TRUE, TRUE),
publish = F)