Support for experimental https://lintr.r-lib.org/reference/read_settings.html#details
まだ誰も着手していません。
評価
調査の方向性
まず、vscode-R がサポートされている .lintr 設定をどのように読み取るかを追跡し、その動作を lintr.R および lintr::read_settings と比較します。長い行の例を再現し、lintr.R の設定が .lintr に名前を変更しなくても適用されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
REditorSupport/vscode-R のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
REditorSupport/vscode-R#1687 · コメント 3 件 · リアクション 3 件 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
REditorSupport/vscode-R#1659 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
REditorSupport/vscode-R#1641 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
REditorSupport/vscode-R#1740 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
REditorSupport/vscode-R#1732 · コメント 2 件 ·
REditorSupport/vscode-R の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
0xMiden/bridge-portal#132 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
area:tools bug good first issue help wanted priority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
TaewoooPark/Motifcode#14 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
newrelic-experimental/preflight#793 · コメント 1 件 ·