Skip to content

zeallot 0.2.0 (drifting by)

Latest

Choose a tag to compare

@nteetor nteetor released this 03 Jun 01:33
· 1 commit to main since this release

Breaking changes

  • The collector syntax has changed. The previous syntax ... was incompatible
    with R CMD check and 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 destructure methods 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 check from raising visible binding errors for variables assigned using
    %<-%. Call the function from a package's .onLoad function. (#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.