DONE noweb R error?

  • State "DONE" from "PROPOSED" 2010-04-08 Thu 22:47
  • State "PROPOSED" from "" 2010-04-03 Sat 20:50

This is an oddity of ggplot2 in R. It behaves differently at the top level versus when wrapped in a function body.

Execute in dir with dir "temp" present

12
library(ggplot2)
g <- ggplot(x, aes(x = weight))
g + geom_histogram(aes(y=..density..)) + geom_density(weight=2) + scale_x_log10()
<<plotting-code>>

Brings up Org-Babel Error Output buffer containing

Error: unexpected input in: "x <- read.table("/tmp/org-babel-R-import10613QvG", header=TRUE, sep="\t", as.is=TRUE) <<" Execution halted