rCharts使用knit2wp到Wordpress

时间:2015-10-18 10:58:19

标签: r wordpress knitr rcharts

我一直在尝试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)

0 个答案:

没有答案