[R-package] fix R examples and lgb.plot.interpretation() #2999
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See comments from @StrikerRUS
A few of the R examples are broken right now. These weren't caught by tests because one is only a warning, one is a plot that is generated successfully but is incorrect, and one is an issue specific to our readthedocs builds.
I think the issue for
lgb.cv()
is #2715. In that issue we found thatdata.table 1.11.4
and R 3.6.0 lead to a data.table error ending incolumn or argument 2 is NULL
. I think this can be fixed by upgrading to thedata.table
1.12.1 inconf.py
.To fix the
lgb.set.categorical()
example, I changed file names across several examples to be sure that no two examples write to the same file name.This issue with
lgb.plot.interpretation()
is because I made a change and forgot to useabs()
.new plot:
I was not able to reproduce the
data.table
error in #2989 (comment). It