[Feature Request]: Extend `within` to accept a custom parameter that links all lines to a dataname
まだ誰も着手していません。
評価
調査の方向性
まず within.qenv のエントリポイントをたどり、その get_code の出力を eval_code に既存する @linksto の動作と比較します。within.qenv の links_to 値が関連する expr コードを指定された dataname にリンクし、示されている get_code の結果を保持すれば完了です。issue ではファイルもテストも指定されていません。
索引モデルが issue の本文から書いたものです。
説明
Feature description
Extend within.qenv(data, expr, links_to = NULL, ...) so that links_to parameter will hint the code parser
The goal is that all the code in expr is hinted to one dataname (?or more?).
The get_code below would output the same code.
library(teal.code)
library(teal.data)
data_within <- teal_data() |> within({
options("AN_OPTION" = iris)
IRIS <- getOption("AN_OPTION")
}, links_to = "IRIS")
datanames(data_within) <- "IRIS"
get_code(data_within, datanames = "IRIS") |> cat()
#> IRIS <- getOption("AN_OPTION")
data_eval <- teal_data() |> eval_code("
options(\"AN_OPTION\" = iris) # @linksto IRIS
IRIS <- getOption(\"AN_OPTION\")
")
datanames(data_eval) <- "IRIS"
get_code(data_eval, datanames = "IRIS") |> cat()
#> options(AN_OPTION = iris)
#> IRIS <- getOption("AN_OPTION")
Created on 2024-02-20 with reprex v2.0.2
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
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
pharmaverse/teal.code#305 ·
-
[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 名 ·
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 ·