将rmd文件编织为pdf时出错

将rmd文件编织为pdf时出错,r,pdf,knitr,R,Pdf,Knitr,由于以下错误,我无法编制rmd文档: title: "R two" author: "Minoo " date: "Monday, February 13, 2017" output: pdf_document: default html_document: default 处理文件:R_two.Rmd |... | 4% ordinary text w

由于以下错误,我无法编制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”未找到调用: ... 使用visible->eval->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格式时。在我的代码中有一部分是这样的 库(“报告工具”)


您是否可以发布您的脚本或至少与之关联的YAML,而不是您的处理输出?我的脚本非常大,无法发布,我无法理解您的YAML意思@是_green@minooYAML是在rmd之前出现的,通常类似于:
——标题:“元分析”作者:“Derek Corcoran”日期:“2017年2月13日”输出:pdf\u文档——
@DerekCorcoran谢谢,正如我理解你的意思,我编辑我的帖子。我想如果你只有.html或者PDF,它可能会工作……但是默认的想法意味着你不能有两个默认值。如果两个都需要,请一次运行一个!
htmlRep <- HTMLReport(shortName="report", title="My report",
                      reportDirectory="./report")
publish(resOrderedDF, htmlRep)
url <- finish(htmlRep)
browseURL(url)
browseURL(url)