I am trying to knit a pdf from Emacs/ess. I can knit the file using RStudio to make a pdf. Using Emacs I can weave it and export it (C-c C-c e), but it exports as a .txt Here is an example code:
---
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)
```
How do I export as a .pdf?
I believe you'll need to go outside of ESS for this:
Polymode/poly-R lists support for several weavers: