-
-
Notifications
You must be signed in to change notification settings - Fork 219
consider empty vectors in min() and max() (fixes #883) #884
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
Conversation
Reviews / thumbs up-or-down welcome! @kevinushey @jjallaire @thirdwing @nathan-russell ... |
LGTM! |
Why not use |
Because of this:
In the integer case it does become |
Running another round of reverse depends now, and only hickup is in BigVAR. It has in file src/ExperimentalBigVARFunctionsX.cpp a function (indented here)
with a test
and we now get
but I am a little confused how that would have worked before Is this a regression we need to fix? |
Looks like
IMHO it's fine that this is a compilation error and perhaps provide a patch (or request a change) from |
The R level APIs also don't understand lists:
so IMHO further evidence that not supporting |
Agreed. Did the same / similar test with So I concur: It was sloppy code by us before allowing this compile, but this particular snippet may actually be an issue in |
Thanks for letting me know about this issue. I will remove the max call from my package and will re-upload a new version to cran. |
Awesome (as also discussed via email). Turns out that this was the only 'regression' so I will wrap up Rcpp 0.12.18 for CRAN this weekend. |
No description provided.