[Feature Request]: Improve reporting of qenv code
まだ誰も着手していません。
評価
調査の方向性
Read the issue's example using globals::globalsOf and the warning produced for subset(iris, Species == species). Start by identifying how qenv code is evaluated and how its environment is isolated; the issue names no files or tests, so locate those entry points in the repository. Done means missing variables or external dependencies are reported more accurately without gaining access to objects from unloaded packages through .GlobalEnv.
索引モデルが issue の本文から書いたものです。
説明
Feature description
During #303 for #272 it was suggested to use globals package for finding issues with the code supplied.
Using code like this:
g2 <- globals::globalsOf(parsed_code, method = "conservative", mustExist = FALSE, envir = [email protected])
missing <- globals::cleanup(g2, drop = c("nativesymbolinfo", "base-packages"))
if (length(missing)) {
warn <- warningCondition(
message = sprintf(
"When evaluating qenv code:\n%s\nMissing objects %s",
parsed_code,
toString(sQuote(names(missing), "'"))
),
class = c("qenv.warn", "simpleWarning")
)
warning(warn, call. = FALSE)
}
Lead to warnings like this on tests:
When evaluating qenv code:
i <- subset(iris, Species == species)
Missing objects 'Species', 'species'
There wasn't an optimal method that would find those variables that cannot be created. It would be great if there were a better way to find the missing variables or external dependencies than to evaluate the code with the .GlobalEnv as this provides access to objects from packages that are not loaded inside the qenv.
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contribution Guidelines
- I agree to follow this project's Contribution Guidelines.
Security Policy
- I agree to follow this project's Security Policy.
- 主要言語
- R
- スター
- 12
- フォーク
- 12
- 平均マージ
- 4日 22時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pharmaverse/teal.code のほかの issue
-
[Feature Request]: High cyclomatic complexity leds to bad readability対応中かも @llrs-roche が 87 日前に担当しました。 オープンenhancement
難易度 3/5 3〜5日 初心者へのやさしさ 45/100
pharmaverse/teal.code#295 ·
-
core discussion
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
pharmaverse/teal.code#291 · コメント 2 件 · リアクション 1 件 ·
-
bug core
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
pharmaverse/teal.code#275 ·
-
This is test issue to test copilot capabilities対応中かも @copilot-swe-agent が 484 日前に担当しました。 オープンbug
pharmaverse/teal.code#266 · リアクション 1 件 · 担当者 1 名 ·
-
core enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
pharmaverse/teal.code#204 ·
pharmaverse/teal.code の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
Bioconductor/BiocParallel#289 ·
-
automation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
waldronlab/BugSigDBcuration#2224 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
merliseclyde/BAS#118 ·