R-编织RMD文件到PDF的错误



我由于这个错误而无法编织我的RMD文档:

title: "R two"
author: "Minoo "
date: "Monday, February 13, 2017"
output:
  pdf_document: default
  html_document: default

处理文件:r_two.rmd

  |...                                                              |   4%
  ordinary text without R code
  |.....                                                            |   8%
label: unnamed-chunk-1
  |........                                                         |  12%
  ordinary text without R code
  |...........                                                      |  17%
label: unnamed-chunk-2
  |..............                                                   |  21%
  ordinary text without R code
  |................                                                 |  25%
label: unnamed-chunk-3
  |...................                                              |  29%
  ordinary text without R code
  |......................                                           |  33%
label: unnamed-chunk-4
  |........................                                         |  38%
  ordinary text without R code
  |...........................                                      |  42%
label: unnamed-chunk-5
  |..............................                                   |  46%
  ordinary text without R code
  |................................                                 |  50%
label: unnamed-chunk-6
  |...................................                              |  54%
  ordinary text without R code
  |......................................                           |  58%
label: unnamed-chunk-7
  |.........................................                        |  62%
  ordinary text without R code
  |...........................................                      |  67%
label: unnamed-chunk-8
  |..............................................                   |  71%
  ordinary text without R code
  |.................................................                |  75%
label: unnamed-chunk-9
  |...................................................              |  79%
  ordinary text without R code
  |......................................................           |  83%
label: unnamed-chunk-10
  |.........................................................        |  88%
  ordinary text without R code
  |............................................................     |  92%
label: unnamed-chunk-11

shell.exe(url)中的错误:'.report/report.html'找不到电话: ...带有可视 ->评估 -> eval-> browseurl-> shell.exec 裁定停止

是否有修复它的想法?我使用R-3.3.2版本和Rstudio-1.0.136版本。

以这种方式进行编辑,它应该工作

title: "R two"
author: "Minoo "
date: "Monday, February 13, 2017"
output:
  pdf_document: default

我再次检查了我的代码,以RMD格式我找不到任何错误,并且当我想将其转换为PDF或HTML格式时发生了此错误。在我的代码的一部分中,我有这个图书馆(" reportingtools")

htmlRep <- HTMLReport(shortName="report", title="My report",
                      reportDirectory="./report")
publish(resOrderedDF, htmlRep)
url <- finish(htmlRep)
browseURL(url)

因此,通过此代码,它需要在浏览器中打开页面。我删除了这条线

browseURL(url)

代码的

尝试再次转换RMD文件,这次没有发生。

最新更新