Support for experimental https://lintr.r-lib.org/reference/read_settings.html#details

オープン
#1,632 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r, vscode
領域
tooling

調査の方向性

まず、vscode-R がサポートされている .lintr 設定をどのように読み取るかを追跡し、その動作を lintr.R および lintr::read_settings と比較します。長い行の例を再現し、lintr.R の設定が .lintr に名前を変更しなくても適用されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug

Describe the bug

vscode-R doesn't support the experimental lintr.R configuration file.

Only the DCF .lintr file is supported

To Reproduce

Create a lintr.R file:

linters <- linters_with_defaults(
    assignment_linter(operator = c("<-", "<<-", "%<>%")), 
    return_linter(
        return_style = c("implicit", "explicit"),
        allow_implicit_else = FALSE
    ),
    pipe_consistency_linter(pipe = c("auto")),
    line_length_linter = NULL,
    commented_code_linter = NULL)
encoding <- "UTF-8"

Write a R script with a very long line.

VS Code will complain that the line exceeds 80 characters.

Open a terminal and run lintr::lint("code.R").

No lints will be found.

Rename .lintr.R into .lintr and substitute the <- with :.

Press CTRL+P and then Reload Windows.

VSCode won't complain about too long lines anymore.

Environment (please complete the following information):

  • OS: Windows
  • VSCode Version:

Version: 1.102.2 (user setup)
Commit: c306e94f98122556ca081f527b466015e1bc37b0
Date: 2025-07-22T12:15:48.520Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.26100

  • R Version
> sessionInfo()
R version 4.5.0 (2025-04-11 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)

Matrix products: default
  LAPACK version 3.12.1

locale:
[1] LC_COLLATE=English_United States.utf8
[2] LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8    

time zone: Europe/Rome
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] lintr_3.2.0.9000

loaded via a namespace (and not attached):
 [1] compiler_4.5.0     backports_1.5.0    lazyeval_0.2.2     cli_3.6.5
 [5] tools_4.5.0        rex_1.2.1          parallel_4.5.0     xmlparsedata_1.0.5
 [9] glue_1.8.0         rstudioapi_0.17.1  xml2_1.3.8         jsonlite_2.0.0
[13] rlang_1.1.6    
  • vscode-R version: 2.8.6
主要言語
TypeScript
スター
1.2k
フォーク
139
平均マージ
3時間 33分
マージ済み PR(30日)
6

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

REditorSupport/vscode-R のほかの issue

REditorSupport/vscode-R の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。