Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 编织:错误:pandoc文档转换失败,错误为61_R_Rstudio_Pandoc - Fatal编程技术网

R 编织:错误:pandoc文档转换失败,错误为61

R 编织:错误:pandoc文档转换失败,错误为61,r,rstudio,pandoc,R,Rstudio,Pandoc,问题 我们的最终用户无法生成html文件,出现以下错误: 错误:pandoc文档转换失败,错误为61 停止执行 TS已执行 我们为以前的错误消息设置了代理。 以前的错误是: pandoc.exe: Could not fetch \\HHBRUNA01.hq.corp.eurocontrol.int\alazarov$\R\win-library\3.5\rmarkdown\rmd\h\jquery\jquery.min.js ResponseTimeout Error: pandoc docu

问题 我们的最终用户无法生成html文件,出现以下错误: 错误:pandoc文档转换失败,错误为61 停止执行

TS已执行 我们为以前的错误消息设置了代理。 以前的错误是:

pandoc.exe: Could not fetch \\HHBRUNA01.hq.corp.eurocontrol.int\alazarov$\R\win-library\3.5\rmarkdown\rmd\h\jquery\jquery.min.js
ResponseTimeout
Error: pandoc document conversion failed with error 67
Execution halted  
为此,我们在RProfile.Site> 我们还尝试了“自给自足:是的”

当前错误消息

Could not fetch http://?/UNC/server.contoso.int/username$/R/win-library/3.5/rmarkdown/rmd/h/default.html
HttpExceptionRequest Request {
  host                 = ""
  port                 = 80
  secure               = False
  requestHeaders       = []
  path                 = "/"
  queryString          = "?/UNC/server.contoso.int/username$/R/win-library/3.5/rmarkdown/rmd/h/default.html"
  method               = "GET"
  proxy                = Just (Proxy {proxyHost = "pac.contoso.int", proxyPort = 9512})
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
(InvalidDestinationHost "")
Error: pandoc document conversion failed with error 61
Execution halted

问题解决了。有人在托管文件的服务器上更改了规则,但没有记录/记录…

我在Windows 10上遇到了同样的问题,用户路径位于网络驱动器上

Could not fetch http://?/UNC/...
Error: pandoc document conversion failed with error 61

解决方案是以管理员身份运行R,删除包“rmarkdown”,然后重新安装

对Malte的回答的补充:当您没有管理员权限时,您可以将库目录更改为您拥有完全权限的目录,例如C:。默认选项是您的网络文件夹“?/UNC/server.contoso.int/username$/R/win library/3.5/rmarkdown/rmd/h/default.html”,您没有足够的权限,因此R无法创建标记文件

在RStudio中,单击工具>安装软件包。。在“安装到库”下,您可以看到默认选项(在您的情况下,它应该是“?/UNC/server.contoso.int/username$/R/win library/3.5/rmarkdown/rmd/h/default.html”)。这里的第二个选项应该是“C:/Program Files/R/R-3.6.2/library”

要更改此顺序,即使“C:/Program Files/R/R-3.6.2/library”文件夹成为默认文件夹,必须使用以下代码(在新的R文件中执行代码):


R和(更重要的是)knitr的最新版本都试过了吗?我们使用的是R3.5.2Maybe
bothPaths <- .libPaths()   # extract both paths
bothPaths <- c(bothPaths [2], bothPaths [1])  # change order
.libPaths(bothPaths )  # modify the order