yihui/knitr — Issue #124: Error in knit when output is a connection
Author: jrnold
Created: 2012-02-05 02:02:01+00:00
State: open

knit() tries to print out the normalized path of the output. When output is a connection rather than a character vector, this gives an error.

```R
library(knitr)
(f = tempfile(fileext = ".Rnw"))
file.copy(system.file("examples", "knitr-minimal.Rnw",
package = "knitr"), f, overwrite = TRUE)
knit(f, output=stdout())
```