Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
reduce applied to a list of functions #643
reduce does not work in the following example.
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):
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