Breaking changes
-
The collector syntax has changed. The previous syntax
...was incompatible
withR CMD checkand would raise the error "... may be used in an incorrect
context". The new syntax..(double dots instead of triple) avoids this
error. (#62)# new c(x, ..) %<-% list(1, 2, 3) # old c(x, ...) %<-% list(1, 2, 3)
-
The
destructuremethods for the Date, character, and complex classes have
been removed.
New features
-
Values may now be assigned by name. The new syntax allows assigning a
value to a variable by name instead of position. (#47)c(disp=, gear=) %<-% mtcars
-
For package developers, the new function
zeallous()will prevent
R CMD checkfrom raising visible binding errors for variables assigned using
%<-%. Call the function from a package's.onLoadfunction. (#57).onLoad <- function(libname, pkgname) { zeallous() }
Major improvements
-
Collector variables now default to an empty list instead of raising an error
when there are no values to collect. (#56)c(x, ..y) %<-% list(1)
-
Trailing anonymous collectors and value skips no longer raise errors.
c(x, ..) %<-% list(1) c(y, .) %<-% list(1)
Minor improvements
-
Error messages have been simplified.
-
R versions >= 3.2 are formally supported.