hadley/evaluate — Issue #8: capture output of cat()
Author: yihui
Created: 2011-10-18 02:37:43+00:00
State: open

Is there a way to make `evaluate()` preserve the output of `cat()` instead of treating it as a character string?

```r
> x = evaluate('cat(letters[1:5], sep="\n")')
> x
[[1]]
$src
[1] "cat(letters[1:5], sep=\"\n\")"

attr(,"class")
[1] "source"

[[2]]
[1] "a\nb\nc\nd\ne\n"
```

In an R terminal, we get this

```r
> cat(letters[1:5], sep="\n")
a
b
c
d
e
```

Thanks!