Recent Releases of zeallot
zeallot - zeallot 0.2.0 (drifting by)
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)
```R # 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)
R
c(disp=, gear=) %<-% mtcars
- For package developers, the new function
zeallous()will preventR CMD checkfrom raising visible binding errors for variables assigned using%<-%. Call the function from a package's.onLoadfunction. (#57)
R
.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)
R
c(x, ..y) %<-% list(1)
- Trailing anonymous collectors and value skips no longer raise errors.
```R c(x, ..) %<-% list(1)
c(y, .) %<-% list(1) ```
Minor improvements
Error messages have been simplified.
R versions >= 3.2 are formally supported.
- R
Published by nteetor 9 months ago
zeallot - winning duende
summary
- Bumped to stable version.
- Removed outdate language in the unpacking assignment vignette. (#36)
- Destructuring objects with multiple classes will no longer raise a warning. (#35)
- R
Published by nteetor over 7 years ago
zeallot - left-hand side of darkness
summary
- The left-hand side may now contain calls to
[[,[, and$allowing assignment of parts of objects. The parent object must already exist, otherwise an error is raised. Thank you to @rafaqz for the suggestion. (#32)
- R
Published by nteetor over 8 years ago
zeallot - to the right, to the right
summary
The bracket and colon syntax has been completely removed, users will now see an "unexpected call {" error message when attempting to use the old syntax. Please use the
c()name structure syntax.A
%->%operator has been added. The right operator performs the same operation as%<-%with the name structure on the right-hand side and the values to assign on the left-hand side. This is particularly useful as the left operator did not work well with%>%chains.=may be used to specify the default value of a variable. A default value is used when there are an insufficient number of values.
- R
Published by nteetor over 8 years ago
zeallot - simpler, lighter, stronger
summary
- The bracket and colon syntax has been deprecated in favor of a lighter syntax. Documentation has been updated accordingly, see docs for more information about the new syntax. Using the old syntax will raise a warning and will be removed in future versions of zeallot. Thank you to @hadley for the suggestion. (#21)
%<-%can now be used for regular assignment. (#17)...can now be used to skip multiple values without assigning those values and is now recommended over the previously suggested..... (#18)massign()is no longer exported.
syntax
c(a, b) %<-% c(0, 1)c(a, b) %<-% list(0, 1)c(a, c(b, d)) %<-% list(0, list(1, 2))c(a, c(b, d)) %<-% data.frame(x = 1:5, y = 6:10, z = 11:15)
bug fixes
- Numerics on left-hand side are no longer unintentionally quoted and will now raise an error. (#20)
- Language objects on left-hand side are no longer treated as symbols and will now raise an error. (#20)
- R
Published by nteetor over 8 years ago
zeallot - vector to shining vector
summary
- documentation and examples now consistently put space around colons, e.g.
a : binstead ofa: b - additional minor updates to the README and man pages
bug fixes
- when unpacking a vector of values collector variables now collect values as a vector, previously values were collected as a list (#14)
- R
Published by nteetor almost 9 years ago
zeallot - initial CRAN release
summary
- all functionality is the same as v0.0.1
- cleaned up README.md, NEWS.md, fixed .Rbuildignore
- submitted to CRAN
- R
Published by nteetor about 9 years ago
zeallot - initial release
summary
- not on CRAN
%<-%operator- name syntax using
:and{
syntax
a: b %<-% c(0, 1){a: b} %<-% list(0, 1){a: {b: c}} %<-% list(0, list(1, 2)){a: b: c} %<-% data.frame(x = 1:5, y = 6:10, z = 11:15)
vignettes
- introduction to unpacking assignment
- R
Published by nteetor about 9 years ago