Rmarkdown不生成pdf

Rmarkdown不生成pdf,r,latex,r-markdown,knitr,tinytex,R,Latex,R Markdown,Knitr,Tinytex,提前感谢您的帮助!我的电脑(2.9.6)上安装了MikTeX和tinytex软件包,但无论我使用什么引擎,Rmarkdown都不会转换成pdf格式(不过它会转换成html格式)。我更新了软件包,其他解决方案似乎建议降级或更新软件包,所以我不知道该怎么办 Output created: ttest.pdf Error in tools::file_path_as_absolute(output_file) : file 'ttest.pdf' does not exist Calls: <

提前感谢您的帮助!我的电脑(2.9.6)上安装了MikTeX和tinytex软件包,但无论我使用什么引擎,Rmarkdown都不会转换成pdf格式(不过它会转换成html格式)。我更新了软件包,其他解决方案似乎建议降级或更新软件包,所以我不知道该怎么办

Output created: ttest.pdf 
Error in tools::file_path_as_absolute(output_file) : 
file 'ttest.pdf' does not exist
Calls: <Anonymous> -> <Anonymous>
In addition: Warning message:
In readLines(logfile) : incomplete final line found on 'ttest.log'
Execution halted
RMD文件

---
title: "ttest"
author: "Erik Maroney"
date: "June 22, 2018"
output: pdf_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

## R Markdown

This is an R Markdown document. Markdown is a simple 
formatting syntax for authoring HTML, PDF, and MS Word 
documents. For more details on using R Markdown see 
<http://rmarkdown.rstudio.com>.

When you click the **Knit** button a document will be 
generated that includes both content as well as the 
output of any embedded R code chunks within the 
document. You can embed an R code chunk like this:

```{r cars}
summary(cars)
```
---
标题:“测试”
作者:“埃里克·马罗尼”
日期:“2018年6月22日”
输出:pdf\U文件
---
```{r设置,include=FALSE}
knitr::opts_chunk$set(echo=TRUE)
```
##降价
这是一份R降价文件。降价是一个简单的方法
用于编写HTML、PDF和MS Word的格式语法
文件。有关使用R标记的更多详细信息,请参阅
.
当您单击**编织**按钮时,将显示一个文档
生成的,包括内容和
系统中任何嵌入式R代码块的输出
文件。您可以像这样嵌入R代码块:
```{r cars}
摘要(车辆)
```

欢迎您——第一篇文章非常精彩。你能介绍一下你是如何初始化编织过程的吗?用RStudio按钮?打电话给knitr或rmarkdown软件包?这两个软件包的相同版本对我有效。你看到了吗?听起来很像。也检查一下你的路线。有时我会遇到错误,如果路径上有空格或特殊字符,这是编织时得到的唯一输出?当您设置
keep_tex:yes
并在RStudio中处理生成的tex文件时会发生什么情况?您可以尝试两种方法:1)让MiKTeX自动安装丢失的软件包:或2)卸载MiKTeX并改为安装TInyTeX:
---
title: "ttest"
author: "Erik Maroney"
date: "June 22, 2018"
output: pdf_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

## R Markdown

This is an R Markdown document. Markdown is a simple 
formatting syntax for authoring HTML, PDF, and MS Word 
documents. For more details on using R Markdown see 
<http://rmarkdown.rstudio.com>.

When you click the **Knit** button a document will be 
generated that includes both content as well as the 
output of any embedded R code chunks within the 
document. You can embed an R code chunk like this:

```{r cars}
summary(cars)
```