From 6c9d0c30f7f47457a5a95a0ce39281ea130f4b2a Mon Sep 17 00:00:00 2001 From: James Lamb Date: Thu, 28 Jan 2021 12:58:18 -0600 Subject: [PATCH] [ci] fix R linting job (fixes #3873) (#3877) * [ci] fix R linting job (fixes #3873) * need to run static analysis * uncomment CI configs * Update .ci/test.sh --- .ci/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ci/test.sh b/.ci/test.sh index e7d096a31dc5..a150d33ffab0 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -44,9 +44,11 @@ if [[ $TASK == "lint" ]]; then pycodestyle \ pydocstyle \ r-stringi # stringi needs to be installed separate from r-lintr to avoid issues like 'unable to load shared object stringi.so' + # r-xfun below has to be upgraded because lintr requires > 0.19 for that package conda install -q -y -n $CONDA_ENV \ -c conda-forge \ libxml2 \ + "r-xfun>=0.19" \ "r-lintr>=2.0" pip install --user cpplint mypy echo "Linting Python code"