drlib
drlib copied to clipboard
accumulate_while() produces as_function() error
Hi David, I love accumulate_while, any chance it could get updated to avoid the error below (the results it produces are still correct).
drlib::accumulate_while(17,~.+1,~.<20)
as_function() is deprecated; please use as_mapper() or rlang::as_function() insteadas_function() is deprecated; please use as_mapper() or rlang::as_function() instead[[1]]
[1] 17
[[2]]
[1] 18
[[3]]
[1] 19
[[4]]
[1] 20
Another request: could you create accumulate_while_*, where * = lgl, int, dbl, chr, etc., so in the example above i would have used
drlib::accumulate_while_int(17L,~.+1L,~.<20L)
[1] 17 18 19 20