[Feature Request]: Extend `within` to accept a custom parameter that links all lines to a dataname
还没有人认领这个 Issue。
评估
调研方向
首先跟踪 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 小时
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pharmaverse/teal.code 的其他 Issue
-
enhancement
难度 5/5 一周以上 新手友好度 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 一周以上 新手友好度 25/100
pharmaverse/teal.code#291 · 2 条评论 · 1 个 reaction ·
-
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 个 reaction · 已指派 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 ·