-
Notifications
You must be signed in to change notification settings - Fork 276
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
reduce applied to a list of functions #643
Comments
When I try to run this, I'm getting the following error after trying to run the first #> Error: C stack usage 7969232 is too close to the limit Could you please turn this into a self-contained reprex (short for minimal reproducible example)? It will help us help you if we can be sure we're all working with/looking at the same stuff. If you've never heard of a reprex before, you might want to start by reading the tidyverse.org help page. You can install reprex by running (you may already have it, though, if you have the tidyverse package installed): install.packages("reprex") Thanks |
The error message you get is exactly why I wrote the post. |
OK. For future reference, it's helpful to know what error you're encountering for triaging/figuring out issues. reprex (which shows input and output code) doesn't work in this case anyhow, because of the C stack error, but including the error that you are getting in the issue makes things just a little bit easier to get sorted! |
If you use I don't fully understand the mechanism but you can fix your function by forcing the evaluation of
Still I guess it can be considered a
|
@neuwirthe, fns <- list(sin, cos)
compose(!!! fns) |
reduce does not work in the following example.
Should reduce applied to a lust of functions work this way?
The text was updated successfully, but these errors were encountered: