Skip to content

v0.5

Compare
Choose a tag to compare
@renkun-ken renkun-ken released this 30 Sep 17:09
· 70 commits to master since this release

Completely removed deprecated operators, functions, and usage

  • Operators (%:>% and %|>%)
  • Closure fun() in Pipe object
  • No longer supports -> to build lambda expression

The following notation is NO LONGER supported

data %>>% (df -> lm(mpg ~ cyl + wt, data = df))

Please use formula instead

data %>>% (df ~ lm(mpg ~ cyl + wt, data = df))

Support more flexible assignment

  • Support assignment in using ~, <- and -> within ()
# assign to symbol
foo %>>% (~ bar) 
# bar <- foo

# assign and continue piping
foo %>>% (bar <- lm(y ~ x, data = .))
foo %>>% (lm(y ~ x, data = .) -> bar) 
# bar <- lm(y ~ x, data = foo)

# assign only for side effect
foo %>>% (~ bar <- lm(y ~ x, data = .))
foo %>>% (~ lm(y ~ x, data = .) -> bar) 
# bar <- lm(y ~ x, data = foo); foo