[英]Trouble with googlevis using Knitr HTML in RStudio 0.98.94
When using RStudio 0.97, I used to be able to easily knit googleVis
plots into html output. 当使用RStudio 0.97时,我曾经能够轻松地将googleVis
图编织成html输出。 However, now using RStudio 0.98.94, it causes an error even for the following Rmd: 但是,现在使用RStudio 0.98.94,即使对于以下Rmd也会导致错误:
---
title: "knitr googleVis"
output: html_document
---
```{r, results='asis'}
library('googleVis')
tbl <- gvisTable(data.frame(letters = letters[1:5], number = seq(5)))
print(tbl, 'chart')
```
The error message is: 错误消息是:
pandoc.exe: Failed to retrieve https://www.google.com/jsapi?callback=displayChartTableID253831656700 pandoc.exe:无法检索https://www.google.com/jsapi?callback=displayChartTableID253831656700
InternalIOException getAddrInfo: does not exist (error 11001) InternalIOException getAddrInfo:不存在(错误11001)
Error: pandoc document conversion failed with error 61 错误:pandoc文档转换失败,错误61
In addition: Warning message: 另外:警告信息:
In if (grepl(" ", path, fixed = TRUE)) path <- utils::shortPathName(path) : the condition has length > 1 and only the first element will be used 在if(grepl(“”,path,fixed = TRUE))path < - utils :: shortPathName(path):条件的长度> 1,只使用第一个元素
Execution halted 执行停止
The following is my sessionInfo(): 以下是我的sessionInfo():
sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-w64-mingw32/x64 (64-bit) sessionInfo()R版本3.0.2(2013-09-25)平台:x86_64-w64-mingw32 / x64(64位)
locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 > LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252 locale:[1] LC_COLLATE = English_United States.1252 LC_CTYPE = English_United States.1252> LC_MONETARY = English_United States.1252 [4] LC_NUMERIC = C LC_TIME = English_United States.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base 附加基础包:[1] stats graphics grDevices utils数据集方法库
other attached packages: [1] googleVis_0.5.4 其他附件包:[1] googleVis_0.5.4
loaded via a namespace (and not attached): [1] digest_0.6.4 htmltools_0.2.4 RJSONIO_1.0-3 rmarkdown_0.2.49 tools_3.0.2 > yaml_2.1.13 通过命名空间加载(而不是附加):[1] digest_0.6.4 htmltools_0.2.4 RJSONIO_1.0-3 rmarkdown_0.2.49 tools_3.0.2> yaml_2.1.13
Does anyone have any ideas on fixing this? 有没有人有解决这个问题的想法? Thanks a lot! 非常感谢!
Knitr不会渲染googleVis或devtools::install_github('mages/googleVis')
对我devtools::install_github('mages/googleVis')
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.