2

预先感谢您的任何帮助!我在我的计算机(2.9.6)和 tinytex 包上安装了 MikTeX,但无论我使用什么引擎,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

会话信息

> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United 
States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] tinytex_0.5

loaded via a namespace (and not attached):
[1] compiler_3.5.0  backports_1.1.2 magrittr_1.5    rprojroot_1.3-2 
htmltools_0.3.6
[6] tools_3.5.0     yaml_2.1.19     Rcpp_0.12.17    stringi_1.1.7   
rmarkdown_1.10 
[11] knitr_1.20      stringr_1.3.1   digest_0.6.15   evaluate_0.10.1

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)
```
4

0 回答 0