Emacs ESS 降价,无法制作 pdf

Emacs ESS markdown, cant make pdf

我正在尝试从 Emacs/ess 编织一个 pdf。我可以使用 RStudio 编织文件来制作 pdf。使用 Emacs 我可以编织并导出它 (C-c C-c e),但它导出为 .txt 这是一个示例代码:

---
title: "Untitled"
author: "SB"
date: "Wednesday, February 04, 2015"
output: pdf_document
---

You can embed an R code chunk like this:

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

You can also embed plots, for example:

```{r, echo=FALSE}
plot(cars)
```

如何导出为 .pdf 文件?

我相信您需要为此走出 ESS:

Libraries for literate data analysis are obsolete and not loaded by default. This includes ess-noweb, ess-swv, and related functionality like Rnw-mode. Users are encouraged to switch to one of several other packages that deal with these modes. For example, polymode https://github.com/polymode/poly-R/, https://polymode.github.io/, or markdown-mode with edit-indirect https://jblevins.org/projects/markdown-mode.

Polymode/poly-R 列出了对几个编织器的支持:

Weavers:

  • knitr
  • knitr-ESS
  • Sweave-ESS
  • Sweave