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

Obscure error in R package when setting a specific environment variable #7046

Closed
exalate-issue-sync bot opened this issue May 11, 2023 · 2 comments
Closed
Assignees

Comments

@exalate-issue-sync
Copy link

Reported by BDR and we will be pulled from CRAN if we don’t fix by April 7.

There is a clear coding error in h2o:
else if (type == “numeric” && value == “Infinity”)
value <- Inf
else if (type == “numeric” && value == “-Infinity”)
value <- -Inf
can only be correct if type and value both have length one. And there is no check that either is and one of them was of length 3.
To reproduce that I used
env R_CHECK_LENGTH_1_LOGIC2=verbose R
library(lazytrade)
example(aml_make_model)
(even with R 4.1.3 and even on macOS).

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

JIRA Issue Details

Jira Issue: PUBDEV-8634
Assignee: Tomas Fryda
Reporter: Erin LeDell
State: Resolved
Fix Version: 3.36.0.4
Attachments: N/A
Development PRs: Available

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

Linked PRs from JIRA

#6120
#6128

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

No branches or pull requests

2 participants