stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

[Bug]: lintr configuration needs to be updated due to breaking changes

Open kgryte opened this issue 3 years ago • 0 comments

Description

Encountered an error when attempting to lint R files after installing the latest lintr package (3.x).

The lintr configuration in https://github.com/stdlib-js/stdlib/blob/232d92dcd2f07187ab1973d88e25cf5354a97633/tools/lint/r/linter.R#L42 needs to be updated to accommodate breaking changes, such as deprecated rules, etc.

Should also consider pinning package versions in https://github.com/stdlib-js/stdlib/blob/232d92dcd2f07187ab1973d88e25cf5354a97633/etc/r/requirements.txt.

cc @steff456

Related Issues

(None)

Questions

No.

Demo

No response

Reproduction

- Install R packages as specified in `/etc/r`. These packages are unversioned. The latest version of `lintr` should be installed.
- Attempt to lint an R file.

Expected Results

The command should work.

Actual Results

The command does not work, due to broken configuation.

Version

No response

Environments

Node.js

Browser Version

No response

Node.js / npm Version

No response

Platform

No response

Checklist

  • [X] Read and understood the Code of Conduct.
  • [X] Searched for existing issues and pull requests.

kgryte avatar Jul 19 '22 23:07 kgryte