我用 rCharts 创建了一个 slidify 并且在我的计算机的浏览器上工作正常,但是当我在另一台计算机上打开该文件夹时,rCharts 没有出现。代码:
setwd("/home/sergio/Copy/PhDgrive/Conferences/IEA2015/IEA2015/")
require(devtools)
pkgs = c('slidify', 'slidifyLibraries')
install_github(pkgs, 'ramnathv')
install_github('rCharts', 'ramnathv')
install.packages("base64enc")
library(slidify)
library(rCharts)
library(base64enc)
author("IEA2015")
slidify("index.Rmd")
publish(user = "xhie", repo = "IEA2015")
此外,在github上发布项目后,RawGit不会渲染并且index.md也不会显示 rCharts。这是 index.Rmd。
---
title : High resolution emissions inventory for Megacity of São Paulo
subtitle : MetroHealth - Instituo de Estudos Avançados USP
author : Sergio Ibarra Espinosa
job : PhD student Meteorology IAG/USP
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : io2012 #
widgets : [nvd3] # {mathjax, quiz, bootstrap}
ext_widgets : {rCharts: libraries/nvd3}
mode : selfcontained ,standalone#, draft
knit : slidify::knit2slides
---
这是一个例子,说明我不是 rChart 的代码
--- .class1
## Passenger Cars distribution by age
### Proconve Standard - 14 years average age
```{r, results = 'asis', comment = NA, message = F, echo = F}
require(knitr)
require(rCharts)
require(base64enc)
setwd("/home/sergio/Copy/PhDgrive/Conferences/IEA2015/IEA2015/")
emi <- read.csv("assets/files/dfsA_PROCONVE.txt")
d1 <- dPlot(
x = "sanos",
y = "df_A.sA",
groups = "Standard_PC",
data = emi,
type = 'bar')
d1$legend( x = 60, y = 10, width = 800, height = 20, horizontalAlign = "left", orderRule = "Ancestry")
d1$show('iframesrc', cdn = FALSE)
```
我想看到图像在其他计算机上显示的结果