yihui/knitr — Issue #111: Error when cache=TRUE
Author: knokknok
Created: 2012-01-25 17:24:08+00:00
State: open

Sorry for pestering you, but I've got a weird behaviour...
This works:

<>=
library(ggplot2)
@

<>=
freq <- table(as.integer(runif(1000, 1, 100)))
qplot(c(freq), breaks=0:(max(freq)+1), log="y", xlab="Probe number")
@

This doesn't (-> ## Error: objet 'freq' introuvable)

<>=
library(ggplot2)
@

<>=
freq <- table(as.integer(runif(1000, 1, 100)))
qplot(c(freq), breaks=0:(max(freq)+1), log="y", xlab="Probe number")
@

R version 2.14.1 (2011-12-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

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

other attached packages:
[1] ggplot2_0.8.9 proto_0.3-9.2 reshape_0.8.4 plyr_1.7.1 knitr_0.1.6

loaded via a namespace (and not attached):
[1] codetools_0.2-8 digest_0.5.1 evaluate_0.4.1 formatR_0.3-4 highlight_0.3.1 parser_0.0-14 Rcpp_0.9.9 stringr_0.6 tools_2.14.1