R 谷歌在降价中抛出错误67

R 谷歌在降价中抛出错误67,r,knitr,r-markdown,googlevis,R,Knitr,R Markdown,Googlevis,以前简单地使用Rstudio“knit”按钮就可以在html中很好地呈现的标记现在不会出现。这是windows,R3.4.1,更新了knitr和rmarkdown,整个系统上周运行良好。我有最小的.rprofile文件,在编写下面的最小文档之前没有加载包。如下所示的“手动”连接可以正常工作,即gvisTable和mathjax都以html格式正确呈现,因此这应该不是我今天的互联网连接的问题(我也尝试了其他连接,但没有什么不同): 针织:针织(进,出=md) markdown::markdownT

以前简单地使用Rstudio“knit”按钮就可以在html中很好地呈现的标记现在不会出现。这是windows,R3.4.1,更新了knitr和rmarkdown,整个系统上周运行良好。我有最小的.rprofile文件,在编写下面的最小文档之前没有加载包。如下所示的“手动”连接可以正常工作,即gvisTable和mathjax都以html格式正确呈现,因此这应该不是我今天的互联网连接的问题(我也尝试了其他连接,但没有什么不同):

针织:针织(进,出=md) markdown::markdownToHTML(md,ht)

然而,下面的(我相信是“knit”按钮的功能,借用自)抛出了一个错误

rmarkdown::render(pp,'html\u document','new\u titel.html')

中的错误消息相当长,因此我现在将其追加,URL已被审查,因为我缺乏声誉。我尝试过谷歌搜索,等等,但没有结果。谢谢你的帮助

"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS tmp1.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output new_titel.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "censored" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "censored" --mathjax --variable "censored" 
pandoc.exe: Could not fetch censored
HttpExceptionRequest Request {
  host                 = "www.google.com"
  port                 = 443
  secure               = True
  requestHeaders       = []
  path                 = "/jsapi"
  queryString          = "?callback=displayChartTableID1d98417f33e7"
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (InternalException (HandshakeFailed Error_EOF))
Warning: running command '"" +RTS -K512m -RTS tmp1.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output new_titel.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "censored" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "censored" --mathjax --variable "mathjax-url:censored-not-enough-reputation"' had status 67
Error: pandoc document conversion failed with error 67
---------------最小文档,如果我注释掉gvisTable行或使用上面描述的标记路径,而不是rmarkdown,则呈现良好效果:

---
title: "Untitled"
output:
  html_document: default
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
####title

body

$x=y$ 
```{r , echo=FALSE, results='asis'}
require(knitr)
kable(mtcars[1:2,])
require(googleVis)
gvisTable(mtcars)
```

我有同样的问题,因为有一个降价文件,以前呈现罚款几天。 我有Windows7x64SP1,Rversion3.4.1,Googlevis0.6.2,rmarkdown 1.6,Knitr1.17

有两种变通方法为我解决了这个问题:

(一) 使用

---
title: "Untitled"
output:
  html_document:
    self_contained: false
---
虽然输出不再是一个独立的HTML文件,但在外部文件中有依赖项,但仍然有效。 这不是我的选择,因为我需要能够与同事共享HTML文件

(二) 我发现的唯一其他修复方法是使用较新的Pandoc版本。我以前使用的是Pandoc1.17.2,现在运行的是Pandoc2.0

您可以在中检查您的pandoc版本 C:\ProgramFiles\RStudio\bin\pandoc 通过在命令提示符下运行命令
pandoc--version

我更新Pandoc的方式是

  • 从下载每晚构建的pandoc-windows-7c20fab3.zip
  • 解压并替换中的pandoc.exe和pandoc-citeproc.exe C:\ProgramFiles\RStudio\bin\pandoc 使用新版本(同时保留旧版本作为备份)
使用更新的Pandoc运行Markdown脚本首先产生一个错误(
Pandoc文档转换失败,错误为2
),但此问题已通过解决

---
title: "Untitled"
output:
  html_document:
    smart: false
---

可能不是最优雅的解决方案,但到目前为止,这是唯一对我有效的解决方案。

当咒语完全如所述时,这对我有效。发布没有,但是夜间,是的,没有smart:false我得到错误2加上使用标志的提示。我仍然不确定我是如何破坏工具的,但这个解决方案是最受欢迎的。所以规则!