Pandoc无法从网络驱动器获取

时间:2018-07-09 19:32:48

标签: r markdown r-markdown knitr pandoc

我正在尝试编织R Markdown,但由于某些原因,它无法从网络驱动器中获取CSS

有没有办法解决这个问题?

错误如下:

Could not fetch http://hq-fs-02/users$/D/Documents/R/R-3.5.1/library/rmarkdown/rmd/h/highlightjs/default.css
HttpExceptionRequest Request {
  host                 = "hq-fs-02"
  port                 = 80
  secure               = False
  requestHeaders       = []
  path                 = "/users$/D/Documents/R/R-3.5.1/library/rmarkdown/rmd/h/highlightjs/default.css"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (ConnectionFailure Network.Socket.connect: <socket: 700>: failed (Connection refused (WSAECONNREFUSED)))
Error: pandoc document conversion failed with error 61
Execution halted

1 个答案:

答案 0 :(得分:1)

在将图像插入到Markdown演示文稿中时,我遇到了同样的问题,该图像托管在网络驱动器上。我的解决方案是插入和R代码块并连接到R中的图像,并从本质上将其打印到markdown中。基本上将pandoc排除在方程式之外。

Tab1