xgboost
xgboost copied to clipboard
change in R 4.2 disallows a comparison used in xgboost()
So I got this error when running R xgbboost::xgboost()
Error in is.na(output) || !is.character(output) : 'length = 3' in coercion to 'logical(1)'
While it says "error" it is actually a warning because xgboost()
returns a valid result.
It seems to be in how the '||' operator behavior was changed in R 4.2. See here for more info:
Thanks for raising the issue. Would you be interested in submitting a pull request to fix it?
I am having the same error when running xgboost() in R
Can you provide a small reproducible example please?