rstudio/ggvis — pull request #47 by wch (2013-08-22 04:56:19+00:00)
Title: prop: reactives are always treated as variables

This branch makes it so a prop is constant if and only if it's a constant (atomic value). Reactives are now always treated as variable props.

* Previously, a calculated column could have a different length than the data, and this would result in `Error in .subset2(.subset2(x, colname), i) : subscript out of bounds`. Now if a calculated column is automatically replicated to the length of the data; if it has a length that doesn't integer-multiply to the length of the data, it throws an error (see the new tests).

* The last two examples in interactive.r have changed; you can't have a reactive prop with `constant=FALSE` anymore. Previously, the strings returned by the input would pick out columns in the data. Now, a map function, `as.name`, converts the string to a symbol, which, when eval'ed with the data frame, picks out the column. We may want to consider adding something to make this a little easier to understand.

Some cleanup of examples and documentation is still needed.