Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accumulate_while() produces as_function() error #1

Open
dan-reznik opened this issue Dec 22, 2018 · 0 comments
Open

accumulate_while() produces as_function() error #1

dan-reznik opened this issue Dec 22, 2018 · 0 comments

Comments

@dan-reznik
Copy link

dan-reznik commented Dec 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant